-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 1.56 KB
/
ci.yml
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
# test tasks for GitHub CI
# !!! todo: functional test with sqlite fails, is activated for now.
# todo: add checks for composer validate, lint, phpstan, etc.
# todo: for unit tests, copy the files typo3/testing-framework/Resources/Core/Build/UnitTests.xml
# and typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php to Build/phpunit
name: CI
on:
push:
pull_request:
jobs:
all_core_12:
name: "all core-12"
runs-on: ubuntu-22.04
strategy:
# This prevents cancellation of matrix job runs, if one/two already failed and let the
# rest of the matrix jobs be executed anyway.
fail-fast: false
matrix:
php: [ '8.2', '8.3', '8.4' ]
minMax: [ 'composerInstall']
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Composer"
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s ${{ matrix.minMax }}
- name: "Functional tests with mariadb"
if: always()
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mariadb -s functional
#- name: "Functional tests with sqlite (nightly or pull_request)"
# if: ${{ always() && (github.event_name == 'schedule' || github.event_name == 'pull_request' ) }}
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d sqlite -s functional
- name: "Functional tests with postgres (nightly or pull_request)"
if: ${{ always() && (github.event_name == 'schedule' || github.event_name == 'pull_request' ) }}
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d postgres -s functional