Codecov replacing Code Climate
This commit is contained in:
11
.github/workflows/jest-tests.yml
vendored
11
.github/workflows/jest-tests.yml
vendored
@ -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 $?
|
|
||||||
Reference in New Issue
Block a user