Skip to content

Commit 7e8e088

Browse files
committed
Move codacy upload first
1 parent 1feff49 commit 7e8e088

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
@@ -109,6 +109,16 @@ jobs:
109109
if: ${{ env.COVERAGE_TYPE == 'xdebug' }}
110110
run: ls -ail build/coverage-*/
111111

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+
118+
- name: DEBUG
119+
if: ${{ env.COVERAGE_TYPE == 'xdebug' }}
120+
run: ls -ail build/coverage-*/
121+
112122
# See the reports at https://codecov.io/gh/yoanm/symfony-jsonrpc-http-server
113123
- name: Upload unit tests coverage to codecov
114124
if: ${{ env.COVERAGE_TYPE == 'xdebug' }}
@@ -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)