-
Notifications
You must be signed in to change notification settings - Fork 4
83 lines (69 loc) · 2.34 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
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
name: ci
on: [ push, pull_request ]
jobs:
ci:
name: Tests with TYPO3 ${{ matrix.typo3 }} PHP ${{ matrix.php }}
runs-on: ubuntu-20.04
strategy:
matrix:
typo3: [ '^11.5', '^12.4', '^13.0' ]
php: [ '8.0', '8.1', '8.2', '8.3' ]
exclude:
- typo3: '^11.5'
php: '8.1'
- typo3: '^11.5'
php: '8.2'
- typo3: '^11.5'
php: '8.3'
- typo3: '^12.4'
php: '8.0'
- typo3: '^12.4'
php: '8.3'
- typo3: '^13.0'
php: '8.0'
- typo3: '^13.0'
php: '8.1'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup PHP version ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-
- name: Install dependencies with typo3/cms-core:${{ matrix.typo3 }}
run: |
composer require typo3/cms-core:${{ matrix.typo3 }} --prefer-dist --no-progress --no-suggest --optimize-autoloader
- name: Info
run: composer info
- name: Lint
run: |
composer run ci:lint:php
composer run ci:lint:yaml
- name: CGL
run: composer run ci:cgl:check
if: matrix.typo3 == '^12.4'
- name: Psalm
run: composer run ci:psalm
if: matrix.typo3 == '^12.4' || matrix.typo3 == '^13.0'
- name: PHPStan
run: composer run ci:stan
if: matrix.typo3 == '^12.4' || matrix.typo3 == '^13.0'
#- name: Unit tests
# run: |
# phpdbg --version
# composer run ci:tests:unit:cover
# if: matrix.typo3 == '^12.4' || matrix.typo3 == '^13.0'
- name: Functional tests
run: composer run ci:tests:functional
if: matrix.typo3 == '^12.4' || matrix.typo3 == '^13.0'