only upload coverage once on node 16

deepsource-autofix-76c6eb20
Dan Gowans 2023-01-26 14:38:15 -05:00
parent e08f5c4627
commit 68853bff4f
1 changed files with 2 additions and 2 deletions

View File

@ -38,12 +38,12 @@ jobs:
env: env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- name: Code Climate - name: Code Climate
if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' }} if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' && matrix.node == 16 }}
run: | run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./codeclimate-test-reporter curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./codeclimate-test-reporter
chmod +x codeclimate-test-reporter chmod +x codeclimate-test-reporter
./codeclimate-test-reporter before-build ./codeclimate-test-reporter before-build
./codeclimate-test-reporter after-build -t lcov --exit-code $? ./codeclimate-test-reporter after-build -t lcov --exit-code $?
- name: Codacy - name: Codacy
if: ${{ github.event_name != 'pull_request' && env.CODACY_PROJECT_TOKEN != '' }} if: ${{ github.event_name != 'pull_request' && env.CODACY_PROJECT_TOKEN != '' && matrix.node == 16 }}
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./coverage/lcov.info run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./coverage/lcov.info