11
11
#
12
12
13
13
name : CI
14
+ permissions :
15
+ contents : read
14
16
15
17
on :
16
18
pull_request :
19
21
push :
20
22
branches :
21
23
- ' master'
22
- schedule :
23
- - cron : ' 39 */8 * * *'
24
24
25
25
env :
26
26
COLUMNS : 120
34
34
JBZOO_COMPOSER_UPDATE_FLAGS : ${{ matrix.composer_flags }}
35
35
strategy :
36
36
matrix :
37
- php-version : [ 8.1 , 8.2 , 8.3 ]
37
+ php-version : [ 8.2 , 8.3 , 8.4 ]
38
38
coverage : [ xdebug, none ]
39
39
composer_flags : [ "--prefer-lowest", "" ]
40
- build-action : [ "update" ]
41
40
steps :
42
41
- name : Checkout code
43
42
uses : actions/checkout@v3
53
52
extensions : ast
54
53
55
54
- name : Build the Project
56
- run : make ${{ matrix.build-action }} --no-print-directory
55
+ run : make update --no-print-directory
57
56
58
57
- name : 🧪 PHPUnit Tests
59
58
run : make test --no-print-directory
@@ -66,10 +65,10 @@ jobs:
66
65
run : make report-coveralls --no-print-directory || true
67
66
68
67
- name : Upload Artifacts
69
- uses : actions/upload-artifact@v3
68
+ uses : actions/upload-artifact@v4
70
69
continue-on-error : true
71
70
with :
72
- name : PHPUnit - ${{ matrix.php-version }} - ${{ matrix.coverage }} - ${{ matrix.build-action }}
71
+ name : PHPUnit - ${{ matrix.php-version }} - ${{ matrix.coverage }}
73
72
path : build/
74
73
75
74
78
77
runs-on : ubuntu-latest
79
78
strategy :
80
79
matrix :
81
- php-version : [ 8.1 , 8.2 , 8.3 ]
80
+ php-version : [ 8.2 , 8.3 , 8.4 ]
82
81
steps :
83
82
- name : Checkout code
84
83
uses : actions/checkout@v3
100
99
run : make codestyle --no-print-directory
101
100
102
101
- name : Upload Artifacts
103
- uses : actions/upload-artifact@v3
102
+ uses : actions/upload-artifact@v4
104
103
continue-on-error : true
105
104
with :
106
105
name : Linters - ${{ matrix.php-version }}
@@ -112,7 +111,7 @@ jobs:
112
111
runs-on : ubuntu-latest
113
112
strategy :
114
113
matrix :
115
- php-version : [ 8.1 , 8.2 , 8.3 ]
114
+ php-version : [ 8.2 , 8.3 , 8.4 ]
116
115
steps :
117
116
- name : Checkout code
118
117
uses : actions/checkout@v3
@@ -134,7 +133,7 @@ jobs:
134
133
run : make report-all --no-print-directory
135
134
136
135
- name : Upload Artifacts
137
- uses : actions/upload-artifact@v3
136
+ uses : actions/upload-artifact@v4
138
137
continue-on-error : true
139
138
with :
140
139
name : Reports - ${{ matrix.php-version }}
@@ -143,10 +142,9 @@ jobs:
143
142
phar :
144
143
name : Phar
145
144
runs-on : ubuntu-latest
146
- needs : [ phpunit, linters, report ]
147
145
strategy :
148
146
matrix :
149
- php-version : [ 8.1 , 8.2 , 8.3 ]
147
+ php-version : [ 8.2 , 8.3 , 8.4 ]
150
148
steps :
151
149
- name : Checkout code
152
150
uses : actions/checkout@v3
@@ -171,7 +169,7 @@ jobs:
171
169
run : ./build/composer-diff.phar diff --help
172
170
173
171
- name : Upload Artifacts
174
- uses : actions/upload-artifact@v3
172
+ uses : actions/upload-artifact@v4
175
173
continue-on-error : true
176
174
with :
177
175
name : Reports - ${{ matrix.php-version }}
@@ -181,7 +179,6 @@ jobs:
181
179
docker :
182
180
name : Docker
183
181
runs-on : ubuntu-latest
184
- needs : [ phar ]
185
182
steps :
186
183
- name : Checkout code
187
184
uses : actions/checkout@v3
0 commit comments