Skip to content

Commit 3ad2644

Browse files
Merge branch '12.5'
* 12.5: Warm PHPUnit's static analysis cache Cache PHPUnit's static analysis cache Cache PHP-CS-Fixer cache directory
2 parents 2f50584 + 621725e commit 3ad2644

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,16 @@ jobs:
9191
coverage: none
9292
tools: none
9393

94+
- name: Cache PHP-CS-Fixer cache directory
95+
uses: actions/cache@v5
96+
with:
97+
path: .php-cs-fixer.cache
98+
key: ${{ runner.os }}-php-cs-fixer-${{ github.ref }}-
99+
restore-keys: |
100+
${{ runner.os }}-php-cs-fixer-${{ github.ref }}-
101+
94102
- name: Run PHP-CS-Fixer
95-
run: ./tools/php-cs-fixer check --show-progress=dots --using-cache=no --verbose
103+
run: ./tools/php-cs-fixer check --cache-file=.php-cs-fixer.cache --show-progress=dots --verbose
96104

97105
static-analysis:
98106
name: Static Analysis
@@ -335,6 +343,17 @@ jobs:
335343
- name: Install dependencies with Composer
336344
run: ./tools/composer install --no-ansi --no-interaction --no-progress
337345

346+
- name: Cache PHPUnit's static analysis cache
347+
uses: actions/cache@v5
348+
with:
349+
path: .phpunit.cache/code-coverage
350+
key: ${{ runner.os }}-phpunit-code-coverage-${{ github.ref }}-
351+
restore-keys: |
352+
${{ runner.os }}-phpunit-code-coverage-${{ github.ref }}-
353+
354+
- name: Warm PHPUnit's static analysis cache
355+
run: ./phpunit --warm-coverage-cache
356+
338357
- name: Collect code coverage with PHPUnit
339358
run: ./phpunit --log-junit test-results.xml --coverage-openclover=code-coverage.xml
340359

0 commit comments

Comments
 (0)