-
Notifications
You must be signed in to change notification settings - Fork 6
81 lines (66 loc) · 2.08 KB
/
Copy pathci.yml
File metadata and controls
81 lines (66 loc) · 2.08 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
name: CI
on:
push:
pull_request:
jobs:
cgl:
name: CGL and lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Validate composer.json
run: composer validate --strict --no-check-lock
- name: Install dependencies
run: composer install --no-progress --ansi
- name: Install dev tools
run: |
for tool in `ls -1 Build/tools`; do
composer install --working-dir="Build/tools/$tool" --no-progress --ansi
done
- name: CGL
run: composer t3g:cgl
- name: Lint PHP
run: composer t3g:test:php:lint
tests:
name: TYPO3 ${{ matrix.typo3 }} on PHP ${{ matrix.php }} (${{ matrix.dependencies }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
typo3: ['^13.4', '^14.3']
php: ['8.2', '8.3', '8.4']
dependencies: ['highest']
include:
# Proves the lower bound the extension declares for TYPO3 v13.
- typo3: '^13.4'
php: '8.2'
dependencies: 'lowest'
steps:
- uses: actions/checkout@v5
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pdo_sqlite, sqlite3
coverage: none
- name: Install dependencies
run: |
composer update \
--with "typo3/cms-core:${{ matrix.typo3 }}" \
${{ matrix.dependencies == 'lowest' && '--prefer-lowest' || '' }} \
--no-progress --ansi
# Informational only: "composer show" takes a single package, and a
# diagnostic step must not be able to fail the build.
- name: Show installed versions
run: composer show --locked
- name: Unit Tests
run: composer t3g:test:php:unit
- name: Functional Tests
env:
typo3DatabaseDriver: pdo_sqlite
run: composer t3g:test:php:functional