From 506d6aff8fa3c69483501b824dced696fe6cbeec Mon Sep 17 00:00:00 2001 From: smiley Date: Sat, 11 Mar 2023 23:11:30 +0100 Subject: [PATCH] :octocat: send coverage to codacy --- .github/workflows/tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6e0b64f72..3fa84cc7f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -84,7 +84,13 @@ jobs: uses: ramsey/composer-install@v2 - name: "Run tests with phpunit" - run: php vendor/bin/phpunit --configuration=phpunit.xml + run: php vendor/bin/phpunit --configuration=phpunit.xml.dist - name: "Send code coverage report to Codecov.io" uses: codecov/codecov-action@v3 + + - name: "Send code coverage report to Codacy" + uses: codacy/codacy-coverage-reporter-action@v1 + with: + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: .build/coverage/clover.xml