ci: skip coverage report for pr

This commit is contained in:
NateScarlet 2021-10-08 19:39:37 +08:00
parent eff814f12b
commit caf226372c
No known key found for this signature in database
GPG Key ID: 5C242793B070309C

View File

@ -36,6 +36,8 @@ jobs:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
run: |
coverage xml && coverage report
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter after-build
if [[ -n "$CC_TEST_REPORTER_ID" ]]; then\
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter &&\
chmod +x ./cc-test-reporter &&\
./cc-test-reporter after-build ;\
fi