Skip to content

Commit 137f84a

Browse files
committed
Update a workflow file for GitHub Actions to run PHPStan
1 parent 734d5f2 commit 137f84a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
path: |
3939
test/phpstan-baseline.neon
40-
key: phpstan-baseline-${{ hashFiles('test/phpstan-baseline.neon') }}
40+
key: phpstan-baseline-${{ github.run_id }}"
4141
restore-keys: |
4242
phpstan-baseline-
4343
@@ -64,8 +64,9 @@ jobs:
6464
6565
- name: Save the baseline for PHPStan
6666
id: cache-baseline-save
67+
if: matrix.level == matrix.max-level && github.event.pull_request.merged == true
6768
uses: actions/cache/save@v4
6869
with:
6970
path: |
7071
test/phpstan-baseline.neon
71-
key: phpstan-baseline-${{ hashFiles('test/phpstan-baseline.neon') }}
72+
key: phpstan-baseline-${{ github.run_id }}"

0 commit comments

Comments
 (0)