-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (65 loc) · 1.82 KB
/
phpunit.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
name: "PHPUnit tests"
on:
pull_request:
push:
env:
TYPO3_PATH_ROOT: ${{ github.workspace }}/.Build/web
typo3DatabaseHost: 127.0.0.1
typo3DatabaseName: typo3
typo3DatabaseUsername: root
typo3DatabasePassword: root
jobs:
phpunit:
name: "PHPUnit tests"
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
dependencies:
- "lowest"
- "highest"
php-version:
- "8.1"
- "8.0"
- "7.4"
operating-system:
- "ubuntu-latest"
coverage:
- "false"
include:
- dependencies: "locked"
php-version: "8.1"
operating-system: "ubuntu-latest"
coverage: "true"
services:
mysql:
image: bitnami/mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: typo3
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
ports:
- 3306:3306
options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 10
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Composer install"
uses: ./.github/actions/composer
with:
php-version: '${{ matrix.php-version }}'
dependencies: '${{ matrix.dependencies }}'
extensions: json, mbstring, pdo_mysql, mysql
- name: "Tests"
uses: ./.github/actions/phpunit
with:
coverage: '${{ matrix.coverage }}'
coverage-folder: ./coverage/
- name: "Upload coverage"
uses: codecov/codecov-action@v5
if: matrix.coverage == 'true'
with:
token: '${{ secrets.CODECOV_TOKEN }}'
directory: ./coverage/
flags: phpunit