Skip to content

Commit 3e1d707

Browse files
authored
Add phpstan to github action
1 parent 3d8ad0e commit 3e1d707

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,20 @@ jobs:
111111
- name: Check CSS code style
112112
run: npm run lint:css
113113

114+
phpstan:
115+
name: Run PHPstan
116+
runs-on: ubuntu-latest
117+
container: joomlaprojects/docker-images:php8.4
118+
needs: [code-style-php]
119+
steps:
120+
- uses: actions/checkout@v4
121+
- uses: actions/cache/restore@v4
122+
with:
123+
path: libraries/vendor
124+
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
125+
- name: Run PHPstan
126+
run: ./libraries/vendor/bin/phpstan || :
127+
114128
tests-unit:
115129
name: Run Unit tests
116130
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)