Skip to content

Commit

Permalink
feat: send tests coverage to codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
e-picas committed Feb 4, 2024
1 parent fef2add commit 324d226
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test_php7.yml
Expand Up @@ -18,6 +18,8 @@ jobs:
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -46,5 +48,13 @@ jobs:
with:
command: run messdetector-with-baseline

- name: Code Climate Setup
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Run unit tests
run: composer run test
run: |
php bin/phpunit --coverage-clover clover.xml --testdox
./cc-test-reporter after-build -t clover --exit-code $?

0 comments on commit 324d226

Please sign in to comment.