Skip to content

Commit

Permalink
Updated phpstan workflow (#4461)
Browse files Browse the repository at this point in the history
* Updated phpstan workflow

* php84

* php84.x

* workflow fix
  • Loading branch information
sreichel authored Jan 15, 2025
1 parent 1cca899 commit ee9eb76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ on:
jobs:
phpstan:
name: Analyze
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4', '8.4']
runs-on: [ubuntu-latest]

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
php-version: 7.4

- uses: actions/checkout@v4

Expand All @@ -40,7 +36,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: .phpstan.cache
key: phpstan-result-cache-${{ matrix.php-versions }}-${{ github.run_id }}
key: phpstan-result-cache-${{ github.run_id }}
restore-keys: |
phpstan-result-cache-
Expand All @@ -52,4 +48,4 @@ jobs:
if: always()
with:
path: .phpstan.cache
key: phpstan-result-cache-${{ matrix.php-versions }}-${{ github.run_id }}
key: phpstan-result-cache-${{ github.run_id }}
3 changes: 3 additions & 0 deletions .phpstan.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ includes:
- .phpstan.dist.baseline.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
phpVersion:
min: 70433
max: 80499
magentoRootPath: %currentWorkingDirectory%
fileExtensions:
- php
Expand Down

0 comments on commit ee9eb76

Please sign in to comment.