try to avoid reporting on pull requests
parent
b60ffa6e9b
commit
7a5b91d05d
|
|
@ -25,6 +25,7 @@ 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' && secrets.CC_TEST_REPORTER_ID }}
|
||||||
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
|
||||||
|
|
@ -32,9 +33,8 @@ jobs:
|
||||||
./codeclimate-test-reporter after-build -t lcov --exit-code $?
|
./codeclimate-test-reporter after-build -t lcov --exit-code $?
|
||||||
env:
|
env:
|
||||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
- name: Codacy
|
- name: Codacy
|
||||||
|
if: ${{ github.event_name != 'pull_request' && secrets.CODACY_PROJECT_TOKEN }}
|
||||||
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
|
||||||
env:
|
env:
|
||||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
Loading…
Reference in New Issue