Codecov replacing Code Climate

This commit is contained in:
James Barnsley
2021-10-26 21:32:38 +13:00
parent 160c94d0c2
commit 97bae58f9b

View File

@ -12,16 +12,11 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '12' node-version: '12'
- name: Install Code Climate test-reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- name: Install modules - name: Install modules
run: npm ci run: npm ci
- name: Run tests - name: Run tests
env: env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: | run: npm run test
./cc-test-reporter before-build - name: Submit to Codecov
npm run test uses: codecov/codecov-action@v1
./cc-test-reporter after-build --exit-code $?