Skip to content

Commit 1ce322b

Browse files
authored
Add phpstan to github action (#45634)
* Add phpstan to github action * Update ci.yml * Update ci.yml
1 parent 4d41d6f commit 1ce322b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,21 @@ 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: |
127+
./libraries/vendor/bin/phpstan --error-format=github || :
128+
114129
tests-unit:
115130
name: Run Unit tests
116131
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)