Skip to content

Commit a267b0d

Browse files
committed
Add psalm to actions
1 parent 5edb910 commit a267b0d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/psalm.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Psalm static analysis
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
name: ${{matrix.operating-system}}, PHP ${{ matrix.php }}
8+
9+
runs-on: ${{ matrix.operating-system }}
10+
11+
strategy:
12+
matrix:
13+
operating-system: [ ubuntu-latest ]
14+
php: ['8.1' ]
15+
16+
steps:
17+
- uses: actions/checkout@master
18+
19+
- name: Setup PHP
20+
uses: nanasess/setup-php@master
21+
with:
22+
php-version: ${{ matrix.php }}
23+
24+
- name: Install dependencies
25+
run: composer install
26+
27+
- name: Run psalm
28+
run: php vendor/bin/psalm

0 commit comments

Comments
 (0)