ci: skip coverage report for pr
This commit is contained in:
parent
eff814f12b
commit
caf226372c
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
|
@ -36,6 +36,8 @@ jobs:
|
||||||
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
||||||
run: |
|
run: |
|
||||||
coverage xml && coverage report
|
coverage xml && coverage report
|
||||||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
if [[ -n "$CC_TEST_REPORTER_ID" ]]; then\
|
||||||
chmod +x ./cc-test-reporter
|
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter &&\
|
||||||
./cc-test-reporter after-build
|
chmod +x ./cc-test-reporter &&\
|
||||||
|
./cc-test-reporter after-build ;\
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user