From 349fe8e9bd3da711ab5c8221932d1bc5f551a1da Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Wed, 27 May 2020 08:45:42 -0400 Subject: [PATCH] chore: add coverage GitHub action (#185) * chore: use codacy coverage reporter via GH Action Signed-off-by: Lance Ball --- .../workflows/codacy-coverage-reporter.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/codacy-coverage-reporter.yml diff --git a/.github/workflows/codacy-coverage-reporter.yml b/.github/workflows/codacy-coverage-reporter.yml new file mode 100644 index 0000000..248fc41 --- /dev/null +++ b/.github/workflows/codacy-coverage-reporter.yml @@ -0,0 +1,22 @@ +name: Code Coverage + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + - run: npm ci + - run: npm run build --if-present + - run: npm run coverage-publish + env: + CODACY_PROJECT_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}}