Skip to content

Commit c81fe5e

Browse files
committed
Add behat coverage cache
1 parent c606877 commit c81fe5e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
~/.composer
9595
./vendor
9696
${{ env.CODACY_REPORTER_TMP_FOLDER }}
97+
build/behat-code-coverage-cache
9798
# Clear the cache if composer json (as composer.lock is in the repo) has been updated
9899
key: ${{ env.CACHE_VERSION }}-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
99100

@@ -138,8 +139,8 @@ jobs:
138139
- name: DEBUG
139140
run: ls -ail ${{ env.CODACY_REPORTER_TMP_FOLDER }} ${{ env.CODACY_REPORTER_TMP_FOLDER }}/*
140141

141-
- name: Upload coverages to Codacy
142-
run: ${{ env.CODACY_REPORTER_TMP_FOLDER }}/codacy.sh 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
142+
# - name: Upload coverages to Codacy
143+
# run: ${{ env.CODACY_REPORTER_TMP_FOLDER }}/codacy.sh 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
143144

144145
finalize-codacy-coverage-report:
145146
runs-on: ubuntu-latest
@@ -162,8 +163,8 @@ jobs:
162163
&& chmod +x ${{ env.CODACY_REPORTER_TMP_FOLDER }}/codacy.sh \
163164
&& ${{ env.CODACY_REPORTER_TMP_FOLDER }}/codacy.sh download
164165
165-
- name: Finalize reporting
166-
run: ${{ env.CODACY_REPORTER_TMP_FOLDER }}/codacy.sh final -t ${{ secrets.CODACY_PROJECT_TOKEN }}
166+
# - name: Finalize reporting
167+
# run: ${{ env.CODACY_REPORTER_TMP_FOLDER }}/codacy.sh final -t ${{ secrets.CODACY_PROJECT_TOKEN }}
167168

168169
nightly-tests:
169170
name: Nightly - PHP ${{ matrix.php-version }} / Symfony ${{ matrix.symfony-version }}
@@ -202,6 +203,7 @@ jobs:
202203
~/.composer
203204
./vendor
204205
${{ env.CODACY_REPORTER_TMP_FOLDER }}
206+
build/behat-code-coverage-cache
205207
# Clear the cache if composer json (as composer.lock is in the repo) has been updated
206208
key: ${{ env.CACHE_VERSION }}-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
207209

@@ -227,6 +229,7 @@ jobs:
227229
name: "unit-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}"
228230
flags: "nightly,unit-tests,php-${{ matrix.php-version }},sf-${{ matrix.symfony-version }}"
229231
fail_ci_if_error: false
232+
230233
- name: Upload functional tests coverage to codecov
231234
uses: codecov/codecov-action@v3
232235
with:

behat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
default:
22
extensions:
33
DVDoug\Behat\CodeCoverage\Extension:
4+
cache: build/behat-code-coverage-cache
45
filter:
56
include:
67
directories:

0 commit comments

Comments
 (0)