-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (45 loc) · 1.96 KB
/
tests.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Configuration for running GitHub actions
# based on EXT:enetcache: .github/workflows/tests.yml
# https://github.com/lolli42/enetcache/blob/master/.github/workflows/tests.yml
# see https://docs.github.com/en/actions/guides/setting-up-continuous-integration-using-workflow-templates
name: CI
# we do it this way to avoid multiple runs when pushing to PR
on:
push:
branches:
- master
pull_request:
jobs:
testsuite:
name: all tests
runs-on: ubuntu-20.04
strategy:
matrix:
php: [ '7.3', '7.4' ]
minMax: [ 'composerInstallMin', 'composerInstallMax' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare tests
# we need to get typo3/cms-core as source to get the Tests dir with Test traits
run: composer config preferred-install.typo3/cms-core source
- name: Composer install
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s ${{ matrix.minMax }}
- name: Composer validate
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerValidate
- name: cgl
run: Build/Scripts/runTests.sh -s cgl -v -n -p ${{ matrix.php }}
- name: Lint PHP
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint
- name: phpstan
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s phpstan -e "-c ../phpstan.neon"
#- name: Unit tests
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit
- name: Functional tests with mariadb
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mariadb -s functional
#- name: Functional tests with mssql
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mssql -s functional
#- name: Functional tests with postgres
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d postgres -s functional
#- name: Functional tests with sqlite
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d sqlite -s functional