Skip to content

Commit 178d148

Browse files
authored
Codacy GitHub action (#365)
* README for v4 * badges update * license year * Adding codacy reporter action * plain text secret for testing * using bash * downloading artifact * all in one * path to coverage * removing extra job and adding sending coverage report only once
1 parent c4f65a6 commit 178d148

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,15 @@ jobs:
4747

4848
- name: Execute tests
4949
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml --exclude-group flaky
50+
- name: Coverage
51+
if: ${{ matrix.php == '8.1' && matrix.deps == 'lowest' }}
52+
shell: bash
53+
env:
54+
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
55+
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r build/logs/clover.xml
5056

5157
- name: Store artifacts
5258
uses: actions/upload-artifact@v3
5359
with:
5460
name: logs
55-
path: build/logs
61+
path: build/logs

0 commit comments

Comments
 (0)