File tree Expand file tree Collapse file tree 2 files changed +38
-3
lines changed Expand file tree Collapse file tree 2 files changed +38
-3
lines changed Original file line number Diff line number Diff line change 38
38
# https://github.com/doctrine/.github/issues/3
39
39
- name : " Run PHP_CodeSniffer"
40
40
run : " vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
41
-
42
- - name : " Run psalm"
43
- run : " composer static-analysis"
Original file line number Diff line number Diff line change
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)"
You can’t perform that action at this time.
0 commit comments