Skip to content

Commit 39c95e0

Browse files
authored
Create static-analysis.yml
1 parent 38ac7d5 commit 39c95e0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Static analysis"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*.x"
7+
- "main"
8+
push:
9+
branches:
10+
- "*.x"
11+
- "main"
12+
13+
jobs:
14+
psalm:
15+
name: "Static Analysis"
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
20+
with:
21+
php-version: '8.0'
22+
- uses: actions/checkout@v2
23+
- name: Install Dependencies
24+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
25+
- name: Execute tests (Unit and Feature tests) via PHPUnit
26+
run: vendor/bin/psalm

0 commit comments

Comments
 (0)