mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-30 12:07:59 +00:00
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:
committed by
GitHub
parent
c4f65a68ee
commit
178d148438
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user