Skip to content

Commit 45f700d

Browse files
snapshotplTomHAnderson
authored andcommitted
Move to separate workflow
1 parent 4ae86c3 commit 45f700d

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

.github/workflows/coding-standards.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,3 @@ jobs:
3838
# https://github.com/doctrine/.github/issues/3
3939
- name: "Run PHP_CodeSniffer"
4040
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
41-
42-
- name: "Run psalm"
43-
run: "composer static-analysis"

.github/workflows/static-analysis.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
name: "Static Analysis"
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- "*.x"
8+
push:
9+
branches:
10+
- "*.x"
11+
12+
jobs:
13+
static-analysis-psalm:
14+
name: "Static Analysis with Psalm"
15+
runs-on: "ubuntu-20.04"
16+
17+
strategy:
18+
matrix:
19+
php-version:
20+
- "7.4"
21+
22+
steps:
23+
- name: "Checkout code"
24+
uses: "actions/checkout@v2"
25+
26+
- name: "Install PHP"
27+
uses: "shivammathur/setup-php@v2"
28+
with:
29+
coverage: "none"
30+
php-version: "${{ matrix.php-version }}"
31+
32+
- name: "Install dependencies with Composer"
33+
uses: "ramsey/composer-install@v1"
34+
with:
35+
dependency-versions: "highest"
36+
37+
- name: "Run a static analysis with vimeo/psalm"
38+
run: "vendor/bin/psalm --show-info=false --stats --output-format=github --threads=$(nproc)"

0 commit comments

Comments
 (0)