forked from FluidTYPO3/flux
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (72 loc) · 2.67 KB
/
build.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
84
85
86
87
88
89
name: build
on:
push:
branches: [ master, development, '[0-9]+.[0-9]+', '[0-9]+.[0-9]+.[0-9]+' ]
pull_request:
branches: [ master, development, '[0-9]+.[0-9]', '[0-9]+.[0-9]+.[0-9]+' ]
jobs:
build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
name: "PHP ${{ matrix.php-versions }} Test (deps: ${{ matrix.dependencies }})"
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php-versions: ['7.2', '7.3', '7.4']
dependencies: ['highest']
composer-arguments: [''] # to run --ignore-platform-reqs in experimental builds
typo3-version: ['^9.5', '^8.7']
experimental: [false]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, json
ini-values: date.timezone="Europe/Copenhagen", opcache.fast_shutdown=0
- name: Select TYPO3 version
run: "composer require typo3/cms-core:${{ matrix.typo3-version }}"
- name: Composer install
uses: ramsey/composer-install@v1
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: ${{ matrix.composer-arguments }}
- name: Run tests
run: vendor/bin/phpunit
coverage:
runs-on: ubuntu-latest
continue-on-error: true
name: "Coveralls upload"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
extensions: mbstring, json
coverage: xdebug #optional
ini-values: date.timezone="Europe/Copenhagen", opcache.fast_shutdown=0
- name: Select TYPO3 version 9.5
run: "composer require typo3/cms-core:^9.5"
- name: Composer install
uses: ramsey/composer-install@v1
- name: Run tests
run: vendor/bin/phpunit --coverage-clover=build/logs/clover.xml
- name: Upload test coverage
run: vendor/bin/php-coveralls -vvv
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Use this step to configure a required build pass via gh branch protection rules (currently makes experimental builds unusable due to https://github.com/actions/toolkit/issues/581)
#buildall:
# if: "!contains(github.event.head_commit.message, '[skip ci]')"
# runs-on: ubuntu-latest
# name: CI build (matrix)
# needs: build
# steps:
# - name: Check build matrix status
# if: ${{ needs.build.result != 'success' }}
# run: exit 1