Skip to content

Commit f5b45c2

Browse files
committed
Move codacy upload first
1 parent 1feff49 commit f5b45c2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/CI.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ jobs:
105105
- name: Tests
106106
run: make test-unit && make test-functional
107107

108+
- name: DEBUG
109+
if: ${{ env.COVERAGE_TYPE == 'xdebug' }}
110+
run: ls -ail build/coverage-*/
111+
112+
# Upload to codacy first as codecov action always remove coverage files
113+
# despite the disabled move_coverage_to_trash option
114+
- name: Upload coverages to Codacy
115+
if: ${{ env.COVERAGE_TYPE == 'xdebug' }}
116+
run: ${{ env.CODACY_BIN }} report -r build/coverage-phpunit/unit.clover -r build/coverage-behat/clover.xml -r build/coverage-phpunit/functional.clover -t ${{ secrets.CODACY_PROJECT_TOKEN }} --partial
117+
108118
- name: DEBUG
109119
if: ${{ env.COVERAGE_TYPE == 'xdebug' }}
110120
run: ls -ail build/coverage-*/
@@ -140,10 +150,6 @@ jobs:
140150
if: ${{ env.COVERAGE_TYPE == 'xdebug' }}
141151
run: ls -ail build/coverage-*/
142152

143-
- name: Upload coverages to Codacy
144-
if: ${{ env.COVERAGE_TYPE == 'xdebug' }}
145-
run: ${{ env.CODACY_BIN }} report -r build/coverage-phpunit/unit.clover -r build/coverage-behat/clover.xml -r build/coverage-phpunit/functional.clover -t ${{ secrets.CODACY_PROJECT_TOKEN }} --partial
146-
147153
static-checks:
148154
name: Static checks
149155
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)