File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
+
3
+ name : " Static Analysis by PHPStan"
4
+
5
+ on :
6
+ pull_request :
7
+ push :
8
+ branches :
9
+ - " 3.x.x"
10
+
11
+ jobs :
12
+ static-analysis-phpstan :
13
+ name : " Static Analysis by PHPStan"
14
+
15
+ runs-on : ${{ matrix.operating-system }}
16
+
17
+ strategy :
18
+ matrix :
19
+ dependencies :
20
+ - " locked"
21
+ php-version :
22
+ - " 7.4"
23
+ operating-system :
24
+ - " ubuntu-latest"
25
+
26
+ steps :
27
+ - name : " Checkout"
28
+ uses : " actions/checkout@v2"
29
+
30
+ - name : " Install PHP"
31
+ uses : " shivammathur/setup-php@v2"
32
+ with :
33
+ coverage : " pcov"
34
+ php-version : " ${{ matrix.php-version }}"
35
+ ini-values : memory_limit=-1
36
+
37
+ - name : " Cache dependencies"
38
+ uses : " actions/cache@v2"
39
+ with :
40
+ path : |
41
+ ~/.composer/cache
42
+ vendor
43
+ key : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
44
+ restore-keys : " php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
45
+
46
+ - name : " Install lowest dependencies"
47
+ if : ${{ matrix.dependencies == 'lowest' }}
48
+ run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
49
+
50
+ - name : " Install highest dependencies"
51
+ if : ${{ matrix.dependencies == 'highest' }}
52
+ run : " composer update --no-interaction --no-progress --no-suggest"
53
+
54
+ - name : " Install locked dependencies"
55
+ if : ${{ matrix.dependencies == 'locked' }}
56
+ run : " composer install --no-interaction --no-progress --no-suggest"
57
+
58
+ - name : " phpstan"
59
+ run : " composer run inspect"
You can’t perform that action at this time.
0 commit comments