Skip to content

Commit

Permalink
Add Instanbul test coverage to Codeclimate (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyfox authored Jul 20, 2020
1 parent 1623ae7 commit 444a3c4
Show file tree
Hide file tree
Showing 4 changed files with 1,177 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-0.6.3-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- run: |
npm ci
npm run coverage
- run: ./cc-test-reporter --id ${{ secrets.CC_TEST_REPORTER_ID }} after-build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ package-lock.json
node_modules
*~
\#*\#
.nyc_output
Loading

0 comments on commit 444a3c4

Please sign in to comment.