File tree Expand file tree Collapse file tree 3 files changed +766
-348
lines changed Expand file tree Collapse file tree 3 files changed +766
-348
lines changed Original file line number Diff line number Diff line change @@ -2,43 +2,47 @@ name: PHP Composer
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : [master]
6
6
pull_request :
7
- branches : [ master ]
7
+ branches : [master]
8
8
9
9
jobs :
10
10
build :
11
-
12
11
runs-on : ubuntu-latest
13
12
14
13
steps :
15
- - uses : actions/checkout@v2
16
-
17
- - name : Validate composer.json and composer.lock
18
- run : composer validate
19
-
20
- - name : Cache Composer packages
21
- id : composer-cache
22
- uses : actions/cache@v2
23
- with :
24
- path : vendor
25
- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
26
- restore-keys : |
27
- ${{ runner.os }}-php-
28
-
29
- - name : Composer update
30
- run : composer update
31
-
32
- - name : Install dependencies
33
- if : steps.composer-cache.outputs.cache-hit != 'true'
34
- run : composer install --prefer-dist --no-progress --no-suggest
35
-
36
- - name : Run PHPUnit
37
- run : phpunit
38
-
39
- - name : Run PHPStan
40
- uses : docker://oskarstark/phpstan-ga
41
- env :
42
- REQUIRE_DEV : true
43
- with :
44
- args : analyse src/ --level=6
14
+ - uses : actions/checkout@v2
15
+
16
+ - name : Setup PHP 8.0
17
+ uses : shivammathur/setup-php@v2
18
+ with :
19
+ php-version : 8.0
20
+
21
+ - name : Validate composer.json and composer.lock
22
+ run : composer validate
23
+
24
+ - name : Cache Composer packages
25
+ id : composer-cache
26
+ uses : actions/cache@v2
27
+ with :
28
+ path : vendor
29
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
30
+ restore-keys : |
31
+ ${{ runner.os }}-php-
32
+
33
+ - name : Composer update
34
+ run : composer update
35
+
36
+ - name : Install dependencies
37
+ if : steps.composer-cache.outputs.cache-hit != 'true'
38
+ run : composer install --prefer-dist --no-progress --no-suggest
39
+
40
+ - name : Run PHPUnit
41
+ run : phpunit
42
+
43
+ - name : Run PHPStan
44
+ uses : docker://oskarstark/phpstan-ga
45
+ env :
46
+ REQUIRE_DEV : true
47
+ with :
48
+ args : analyse src/ --level=6
Original file line number Diff line number Diff line change 10
10
.php_cs.cache
11
11
12
12
node_modules
13
+ .phpunit.result.cache
You can’t perform that action at this time.
0 commit comments