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
This commit is contained in:
Eduardo Gulias Davis
2023-05-23 17:55:24 +02:00
committed by GitHub
parent c4f65a68ee
commit 178d148438
+7 -1
View File
@@ -47,9 +47,15 @@ jobs:
- name: Execute tests
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml --exclude-group flaky
- name: Coverage
if: ${{ matrix.php == '8.1' && matrix.deps == 'lowest' }}
shell: bash
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r build/logs/clover.xml
- name: Store artifacts
uses: actions/upload-artifact@v3
with:
name: logs
path: build/logs
path: build/logs