-
-
Notifications
You must be signed in to change notification settings - Fork 11
105 lines (103 loc) · 3.31 KB
/
ci.yaml
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
101
102
103
104
105
name: Continous Integration
on:
push:
branches:
- master
- '[0-9]+\-[0-9]+\-x'
pull_request:
jobs:
integration:
name: Integration tests
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 7.4, 8.0 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP Environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: php-cs-fixer:3.5
- name: Check PHP CS
run: php-cs-fixer fix --config .php-cs-fixer.php --dry-run --using-cache no --show-progress dots -vvv
# phpunit:
# needs: integration
# name: PHP ${{ matrix.php-version }} - T3 ${{ matrix.typo3-version }}
# runs-on: ubuntu-latest
# continue-on-error: ${{ matrix.experimental }}
# strategy:
# matrix:
# experimental: [ false ]
# php-version: [ 7.4, 8.0 ]
# typo3-version: [ ^10.4, ^11.5 ]
# include:
# - php-version: 7.4
# typo3-version: 10.4.x-dev
# experimental: true
#
# - php-version: 8.0
# typo3-version: 10.4.x-dev
# experimental: true
#
# - php-version: 7.4
# typo3-version: ^11.5
# experimental: false
#
# - php-version: 8.0
# typo3-version: ^11.5
# experimental: true
# env:
# PHP_VERSION: ${{ matrix.php-version }}
# TYPO3_VERSION: ${{ matrix.typo3-version }}
#
# steps:
# - name: Output Environment Data
# run: |
# echo "Running tests with TYPO3 ${TYPO3_VERSION} and PHP ${PHP_VERSION}"
#
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 10
#
# - uses: shogo82148/actions-setup-mysql@v1
# with:
# mysql-version: '5.7'
# root-password: $3cret
#
# - name: Setup PHP Environment
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php-version }}
# extensions: fileinfo, gd, zip, zlib, openssl, intl, PDO, json, pcre, session, xml, filter, hash, mbstring, SPL, standard, mysqli
# ini-values: max_execution_time=240,memory_limit=256M
# tools: composer:v2
#
# - name: Get composer cache directory
# id: composer-cache
# run: echo "::set-output name=dir::$(composer config cache-files-dir)"
#
# - name: Cache dependencies
# uses: actions/cache@v2
# with:
# path: ${{ steps.composer-cache.outputs.dir }}
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
# restore-keys: ${{ runner.os }}-composer-
#
# - name: Install Dependencies
# env:
# PHP_VERSION: ${{ matrix.php-version }}
# TYPO3_VERSION: ${{ matrix.typo3-version }}
# run: |
# ./Build/install.sh
# export TYPO3_PATH_WEB=$PWD/.Build/web
#
# - name: Run PHP Unit
# run: |
# .Build/bin/phpunit --colors --configuration Tests/Build/FunctionalTests.xml Tests/Functional --bootstrap .Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php --coverage-clover=coverage.xml
#
# if [[ "${{ matrix.php-version }}" == "7.4" ]] && [[ "${{ matrix.typo3-version }}" == "^10.4" ]]; then
# bash <(curl -s https://codecov.io/bash)
# fi