@@ -57,43 +57,48 @@ jobs:
57
57
timeout-minutes : 5
58
58
strategy :
59
59
matrix :
60
- php : ["8.1", "8. 2", "8.3", "8.4"]
60
+ php : ["8.2", "8.3", "8.4"]
61
61
env :
62
- extensions : mbstring, ctype, curl, gd, apcu, memcached
62
+ extensions : mbstring, ctype, curl, gd, apcu, memcached, redis
63
63
ini : apc.enabled=1, apc.enable_cli=1, pcov.directory=., "pcov.exclude=\"~(vendor|tests)~\""
64
64
65
65
steps :
66
66
- name : Checkout
67
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
67
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@ v4
68
68
with :
69
69
fetch-depth : 2
70
70
71
71
- name : Preparations
72
72
run : mkdir sarif
73
73
74
74
- name : Install memcached
75
- uses : niden/actions-memcached@3b3ecd9d0d035ea92db716dc1540a7dbe9e56349 # v7
75
+ uses : niden/actions-memcached@3b3ecd9d0d035ea92db716dc1540a7dbe9e56349 # pin@v7
76
+
77
+ - name : Install redis
78
+ uses : supercharge/redis-github-action@ea9b21c6ecece47bd99595c532e481390ea0f044 # pin@v1
79
+ with :
80
+ redis-version : 7
76
81
77
82
- name : Install system locales
78
83
run : sudo apt-get update && sudo apt-get install -y locales-all
79
84
80
85
- name : Setup PHP cache environment
81
86
id : ext-cache
82
- uses : shivammathur/cache-extensions@d814e887327271b6e290b018d51bba9f62590488 # v1
87
+ uses : shivammathur/cache-extensions@d814e887327271b6e290b018d51bba9f62590488 # pin@ v1
83
88
with :
84
89
php-version : ${{ matrix.php }}
85
90
extensions : ${{ env.extensions }}
86
91
key : php-v1
87
92
88
93
- name : Cache PHP extensions
89
- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
94
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # pin@ v4
90
95
with :
91
96
path : ${{ steps.ext-cache.outputs.dir }}
92
97
key : ${{ steps.ext-cache.outputs.key }}
93
98
restore-keys : ${{ steps.ext-cache.outputs.key }}
94
99
95
100
- name : Setup PHP environment
96
- uses : shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
101
+ uses : shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # pin@ v2
97
102
with :
98
103
php-version : ${{ matrix.php }}
99
104
extensions : ${{ env.extensions }}
@@ -108,7 +113,7 @@ jobs:
108
113
109
114
- name : Cache analysis data
110
115
id : finishPrepare
111
- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
116
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # pin@ v4
112
117
with :
113
118
path : ~/.cache/psalm
114
119
key : backend-analysis-${{ matrix.php }}
@@ -119,7 +124,7 @@ jobs:
119
124
120
125
- name : Run tests
121
126
if : always() && steps.finishPrepare.outcome == 'success'
122
- run : phpunit --fail-on-skipped --coverage-clover ${{ github.workspace }}/clover.xml
127
+ run : phpunit -c phpunit.ci.xml --coverage-clover ${{ github.workspace }}/clover.xml
123
128
124
129
- name : Statically analyze using Psalm
125
130
if : always() && steps.finishPrepare.outcome == 'success' && matrix.php != '8.4'
@@ -130,7 +135,7 @@ jobs:
130
135
token : ${{ secrets.CODECOV_TOKEN }}
131
136
PHP : ${{ matrix.php }}
132
137
if : env.token != ''
133
- uses : codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
138
+ uses : codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # pin@v5
134
139
with :
135
140
token : ${{ secrets.CODECOV_TOKEN }} # for better reliability if the GitHub API is down
136
141
fail_ci_if_error : true
@@ -140,7 +145,7 @@ jobs:
140
145
141
146
- name : Upload code scanning results to GitHub
142
147
if : always() && steps.finishPrepare.outcome == 'success' && github.repository == 'getkirby/kirby' && matrix.php != '8.4'
143
- uses : github/codeql-action/upload-sarif@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2
148
+ uses : github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # pin@v3
144
149
with :
145
150
sarif_file : sarif
146
151
@@ -167,34 +172,34 @@ jobs:
167
172
runs-on : ubuntu-22.04
168
173
timeout-minutes : 5
169
174
env :
170
- php : " 8.1 "
171
- extensions : mbstring, ctype, curl, gd, apcu, memcached
175
+ php : " 8.2 "
176
+ extensions : mbstring, ctype, curl, gd, apcu, memcached, redis
172
177
173
178
steps :
174
179
- name : Checkout
175
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
180
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@ v4
176
181
177
182
- name : Preparations
178
183
run : mkdir sarif
179
184
180
185
- name : Setup PHP cache environment
181
186
id : ext-cache
182
- uses : shivammathur/cache-extensions@d814e887327271b6e290b018d51bba9f62590488 # v1
187
+ uses : shivammathur/cache-extensions@d814e887327271b6e290b018d51bba9f62590488 # pin@ v1
183
188
with :
184
189
php-version : ${{ env.php }}
185
190
extensions : ${{ env.extensions }}
186
191
key : php-analysis-v1
187
192
188
193
- name : Cache PHP extensions
189
- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
194
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # pin@ v4
190
195
with :
191
196
path : ${{ steps.ext-cache.outputs.dir }}
192
197
key : ${{ steps.ext-cache.outputs.key }}
193
198
restore-keys : ${{ steps.ext-cache.outputs.key }}
194
199
195
200
- name : Setup PHP environment
196
201
id : finishPrepare
197
- uses : shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
202
+ uses : shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # pin@ v2
198
203
with :
199
204
php-version : ${{ env.php }}
200
205
extensions : ${{ env.extensions }}
@@ -221,7 +226,7 @@ jobs:
221
226
222
227
- name : Upload code scanning results to GitHub
223
228
if : always() && steps.finishPrepare.outcome == 'success' && github.repository == 'getkirby/kirby'
224
- uses : github/codeql-action/upload-sarif@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2
229
+ uses : github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # pin@v3
225
230
with :
226
231
sarif_file : sarif
227
232
@@ -248,22 +253,22 @@ jobs:
248
253
runs-on : ubuntu-22.04
249
254
timeout-minutes : 5
250
255
env :
251
- php : " 8.1 "
256
+ php : " 8.2 "
252
257
253
258
steps :
254
259
- name : Checkout
255
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
260
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@ v4
256
261
257
262
- name : Setup PHP environment
258
- uses : shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2
263
+ uses : shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # pin@ v2
259
264
with :
260
265
php-version : ${{ env.php }}
261
266
coverage : none
262
- tools : php-cs-fixer:3.52.1
267
+ tools : php-cs-fixer:3.65.0
263
268
264
269
- name : Cache analysis data
265
270
id : finishPrepare
266
- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
271
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # pin@ v4
267
272
with :
268
273
path : ~/.php-cs-fixer
269
274
key : coding-style
0 commit comments