-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (82 loc) · 2.92 KB
/
Copy pathtests.yml
File metadata and controls
100 lines (82 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Tests
on:
push:
pull_request:
jobs:
functional-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php-version: '8.1'
typo3-version: '^12.4'
- php-version: '8.3'
typo3-version: '^12.4'
- php-version: '8.3'
typo3-version: '^13.4'
- php-version: '8.4'
typo3-version: '^13.4'
- php-version: '8.3'
typo3-version: '^14.3'
- php-version: '8.4'
typo3-version: '^14.3'
name: PHP ${{ matrix.php-version }} / TYPO3 ${{ matrix.typo3-version }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: sqlite3, pdo_sqlite
coverage: none
- name: Install TYPO3 version
run: composer require --no-update typo3/cms-core:${{ matrix.typo3-version }} typo3/cms-backend:${{ matrix.typo3-version }} typo3/cms-scheduler:${{ matrix.typo3-version }} typo3/cms-install:${{ matrix.typo3-version }}
- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist
- name: Run functional test suite
run: composer test
e2e-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
typo3-version: ['12.4', '13.4', '14.3']
name: E2E TYPO3 ${{ matrix.typo3-version }}
steps:
- name: Check out repository
uses: actions/checkout@v4
# PHP 8.4 is used for the e2e suite (supported by TYPO3 12.4/13.4/14.3).
# The PHP built-in web server used here misroutes some TYPO3 v14 backend
# module requests on PHP 8.3 (an environment quirk unrelated to the
# extension); 8.4 serves them reliably. Real deployments use php-fpm.
# PHP-version compatibility of the code itself is covered by functional-tests.
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: sqlite3, pdo_sqlite, intl
coverage: none
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: Build/package-lock.json
- name: Install Playwright (npm + browser with system deps)
working-directory: Build
run: |
npm ci
npx playwright install --with-deps chromium
- name: Run E2E test suite
run: bash Build/runTests.sh -s e2e -t ${{ matrix.typo3-version }} --no-docker
- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report-typo3-${{ matrix.typo3-version }}
path: |
Build/playwright-report
Build/test-results
retention-days: 7