Skip to content

Commit 03972d0

Browse files
committed
Rewrite static analysis
1 parent f2a1151 commit 03972d0

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/static-analysis.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,24 @@ on:
1313
jobs:
1414
psalm:
1515
name: "Static Analysis"
16-
runs-on: ubuntu-latest
16+
runs-on: "ubuntu-latest"
1717

1818
steps:
19-
- uses: shivammathur/setup-php@v2
19+
- name: "Checkout"
20+
uses: "actions/checkout@v4"
2021
with:
21-
php-version: '8.1'
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: Psalm
26-
run: vendor/bin/psalm
27-
- name: PHPStan
28-
run: vendor/bin/phpstan analyze src --level=5
22+
fetch-depth: 2
23+
24+
- name: "Install PHP"
25+
uses: "shivammathur/setup-php@v2"
26+
with:
27+
php-version: "8.1"
28+
29+
- name: "Install Dependencies"
30+
run: "composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist"
31+
32+
- name: "Psalm"
33+
run: "vendor/bin/psalm"
34+
35+
- name: "PHPStan"
36+
run: "vendor/bin/phpstan analyze src --level=5"

0 commit comments

Comments
 (0)