Skip to content

Commit 74212d1

Browse files
committed
chore: run PHPStan in CI
1 parent e41b82d commit 74212d1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/phpstan.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Update this by running
2+
# curl https://gist.githubusercontent.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml
3+
4+
on:
5+
push:
6+
branches: ['master']
7+
pull_request:
8+
branches: ['*']
9+
10+
name: Coding Standards
11+
12+
jobs:
13+
phpstan:
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@main
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: 8.3
23+
24+
- name: Install Composer dependencies
25+
run: composer install --no-progress --prefer-dist
26+
27+
- name: Run PHPStan
28+
run: composer run phpstan

0 commit comments

Comments
 (0)