Skip to content

Commit 4a0aa64

Browse files
committed
Fix coverage warning
1 parent 319907b commit 4a0aa64

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/test-phpunit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ jobs:
157157
if: matrix.php-versions == env.COVERAGE_PHP_VERSION
158158
run: echo "TACHYCARDIA_MONITOR_GA=enabled" >> $GITHUB_ENV
159159

160+
- name: Cache PHPUnit's static analysis cache
161+
uses: actions/cache@v3
162+
with:
163+
path: build/.phpunit.cache/code-coverage
164+
key: phpunit-code-coverage-${{ hashFiles('**/phpunit.*') }}
165+
restore-keys: |
166+
phpunit-code-coverage-
167+
160168
- name: Compute coverage option
161169
uses: actions/github-script@v6
162170
id: phpunit-coverage-option
@@ -226,6 +234,14 @@ jobs:
226234
- name: Install dependencies
227235
run: composer update --ansi --no-interaction
228236

237+
- name: Cache PHPUnit's static analysis cache
238+
uses: actions/cache@v3
239+
with:
240+
path: build/.phpunit.cache/code-coverage
241+
key: phpunit-code-coverage-${{ hashFiles('**/phpunit.*') }}
242+
restore-keys: |
243+
phpunit-code-coverage-
244+
229245
- name: Merge coverage files
230246
run: vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov
231247

0 commit comments

Comments
 (0)