File tree 3 files changed +31
-17
lines changed
3 files changed +31
-17
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: "Continuous Integration"
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - master
7
+ - 11.x
5
8
pull_request :
6
9
schedule :
7
10
- cron : ' 0 0 * * *'
@@ -14,14 +17,14 @@ jobs:
14
17
strategy :
15
18
fail-fast : true
16
19
matrix :
17
- php : [8.2, 8.3]
20
+ php : [8.2, 8.3, 8.4 ]
18
21
stability : [prefer-stable]
19
22
20
23
name : PHP ${{ matrix.php }} - ${{ matrix.stability }}
21
24
22
25
steps :
23
26
- name : Checkout code
24
- uses : actions/checkout@v2
27
+ uses : actions/checkout@v4
25
28
26
29
- name : Setup PHP
27
30
uses : shivammathur/setup-php@v2
39
42
with :
40
43
timeout_minutes : 5
41
44
max_attempts : 5
42
- command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
45
+ command : COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
43
46
44
47
- name : Execute tests
45
48
run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 7
7
jobs :
8
8
phplint :
9
9
runs-on : ubuntu-latest
10
+
11
+ permissions :
12
+ contents : write
13
+ pull-requests : write
14
+
10
15
steps :
11
16
- uses : actions/checkout@v4
17
+ with :
18
+ ref : ${{ github.head_ref }}
19
+
12
20
- name : " laravel-pint"
13
- uses : aglipanci/laravel-pint-action@2.0.0
21
+ uses : aglipanci/laravel-pint-action@latest
14
22
with :
15
23
preset : laravel
16
24
verboseMode : true
25
+
17
26
- uses : stefanzweifel/git-auto-commit-action@v5
18
27
with :
19
28
commit_message : " fix: pint"
20
-
Original file line number Diff line number Diff line change 22
22
23
23
jobs :
24
24
static-analysis-phpstan :
25
+
25
26
name : " Static Analysis with PHPStan"
26
27
runs-on : ubuntu-latest
27
28
28
29
strategy :
30
+ fail-fast : true
29
31
matrix :
30
- php : [8.2, 8.3]
32
+ php : [8.2, 8.3, 8.4]
33
+ stability : [prefer-stable]
31
34
32
35
steps :
33
- - name : " Checkout code"
34
- uses : " actions/checkout@v4"
36
+ - name : Checkout code
37
+ uses : actions/checkout@v4
35
38
36
- - name : " Install PHP"
37
- uses : " shivammathur/setup-php@v2"
39
+ - name : Setup PHP
40
+ uses : shivammathur/setup-php@v2
38
41
with :
39
- coverage : " none "
40
- php-version : " ${{ matrix.php-version }} "
41
- tools : " cs2pr "
42
+ php-version : ${{ matrix.php }}
43
+ tools : composer:v2
44
+ coverage : none
42
45
43
46
- name : Install dependencies
44
- uses : nick-fields /retry@v2
47
+ uses : nick-invision /retry@v1
45
48
with :
46
49
timeout_minutes : 5
47
50
max_attempts : 5
48
- command : composer update --prefer-stable --prefer-dist --no-interaction --no-progress
51
+ command : COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
49
52
50
- - name : Execute type checking
51
- run : vendor/bin/phpstan --configuration="phpstan.neon.dist "
53
+ - name : " Run a static analysis with phpstan/phpstan "
54
+ run : " vendor/bin/phpstan --error-format=table "
You can’t perform that action at this time.
0 commit comments