Skip to content

Commit edaa800

Browse files
[Task] raise PHP versions in github workflow: remove PHP 8.1, add PHP 8.5
1 parent b1e3022 commit edaa800

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
strategy:
3535
matrix:
36-
php: [ '8.2', '8.3' , '8.4' ]
36+
php: [ '8.2', '8.3' , '8.4' , '8.5' ]
3737
steps:
3838
- name: Checkout
3939
uses: actions/checkout@v4
@@ -84,7 +84,7 @@ jobs:
8484
name: "Multi-version compatibility check"
8585
runs-on: ubuntu-latest
8686
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
87-
87+
8888
steps:
8989
- name: Checkout
9090
uses: actions/checkout@v4
@@ -100,7 +100,7 @@ jobs:
100100
repo: context.repo.repo,
101101
filename: 'typo3-multi-version-tests.yml'
102102
});
103-
103+
104104
console.log('Multi-version workflow found, it will run automatically based on the same triggers');
105105
} catch (error) {
106106
console.log('Multi-version workflow not found, skipping multi-version tests');
@@ -114,7 +114,7 @@ jobs:
114114
const maxWaitTime = 30 * 60 * 1000; // 30 minutes
115115
const pollInterval = 30 * 1000; // 30 seconds
116116
const startTime = Date.now();
117-
117+
118118
while (Date.now() - startTime < maxWaitTime) {
119119
const runs = await github.rest.actions.listWorkflowRuns({
120120
owner: context.repo.owner,
@@ -123,11 +123,11 @@ jobs:
123123
head_sha: context.sha,
124124
per_page: 1
125125
});
126-
126+
127127
if (runs.data.workflow_runs.length > 0) {
128128
const run = runs.data.workflow_runs[0];
129129
console.log(`Multi-version test status: ${run.status} (${run.conclusion})`);
130-
130+
131131
if (run.status === 'completed') {
132132
if (run.conclusion === 'success') {
133133
console.log('✅ Multi-version tests passed');
@@ -137,10 +137,10 @@ jobs:
137137
}
138138
}
139139
}
140-
140+
141141
await new Promise(resolve => setTimeout(resolve, pollInterval));
142142
}
143-
143+
144144
throw new Error('⏰ Multi-version tests did not complete within the timeout period');
145145
146146
# @todo Add unit test execution after use-full tests has been added

.github/workflows/typo3-multi-version-tests.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ on:
4343
php_versions:
4444
description: 'PHP versions to test (comma-separated)'
4545
required: false
46-
default: '8.1,8.2,8.3'
46+
default: '8.2,8.3,8.4,8.5'
4747
force_full_test:
4848
description: 'Force full test suite (ignore file change detection)'
4949
type: boolean
@@ -63,7 +63,7 @@ jobs:
6363
config-changed: ${{ steps.changes.outputs.config }}
6464
test-changed: ${{ steps.changes.outputs.test }}
6565
force-full: ${{ github.event.inputs.force_full_test == 'true' }}
66-
66+
6767
steps:
6868
- name: Checkout
6969
uses: actions/checkout@v4
@@ -106,22 +106,22 @@ jobs:
106106
needs.detect-changes.outputs.config-changed == 'true' ||
107107
needs.detect-changes.outputs.test-changed == 'true' ||
108108
github.event_name == 'workflow_dispatch'
109-
109+
110110
strategy:
111111
fail-fast: false
112112
matrix:
113113
typo3-version: ['13.4', '14.1']
114-
php-version: ['8.1', '8.2', '8.3']
114+
php-version: ['8.2', '8.3', '8.4', '8.5']
115115
exclude:
116116
# TYPO3 v13 doesn't support PHP 8.4 yet
117117
- typo3-version: '13.4'
118118
php-version: '8.4'
119-
119+
120120
env:
121121
TYPO3_VERSION: ${{ matrix.typo3-version }}
122122
PHP_VERSION: ${{ matrix.php-version }}
123123
EXTENSION_KEY: paste_reference
124-
124+
125125
steps:
126126
- name: Checkout
127127
uses: actions/checkout@v4
@@ -264,13 +264,13 @@ jobs:
264264
runs-on: ubuntu-latest
265265
needs: multi-version-tests
266266
if: always()
267-
267+
268268
steps:
269269
- name: Check test results
270270
run: |
271271
echo "Multi-version test results:"
272272
echo "=========================="
273-
273+
274274
# Check if any jobs failed
275275
if [[ "${{ needs.multi-version-tests.result }}" == "failure" ]]; then
276276
echo "❌ Some multi-version tests failed"
@@ -288,10 +288,10 @@ jobs:
288288
with:
289289
script: |
290290
const status = '${{ needs.multi-version-tests.result }}' === 'success' ? 'success' : 'failure';
291-
const description = status === 'success'
292-
? 'All TYPO3 versions tested successfully'
291+
const description = status === 'success'
292+
? 'All TYPO3 versions tested successfully'
293293
: 'Some TYPO3 version tests failed';
294-
294+
295295
github.rest.repos.createCommitStatus({
296296
owner: context.repo.owner,
297297
repo: context.repo.repo,
@@ -300,4 +300,4 @@ jobs:
300300
target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
301301
description: description,
302302
context: 'TYPO3 Multi-Version Tests'
303-
});
303+
});

0 commit comments

Comments
 (0)