-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (44 loc) · 1.2 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
name: PHPUnit
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
php-versions:
# - 7.3
- 7.4
composer-stability:
- '--prefer-lowest --prefer-stable'
# - '--prefer-stable'
# - ''
database:
- driver: mysql
version: 5.7
- driver: mysql
- driver: mariadb
- driver: postgresql
- driver: sqlite
- driver: mssql
runs-on: ${{ matrix.os }}
steps:
- name: Set up PHP
uses: maxime-rainville/silverstripe-ci-setup@master
with:
composer-stability: ${{ matrix.composer-stability }}
phpVersion: ${{ matrix.php-versions }}
- name: Set up database
uses: maxime-rainville/silverstripe-ci-db@master
with:
driver: ${{ matrix.database.driver }}
version: ${{ matrix.database.version }}
- name: Run test suite
uses: maxime-rainville/silverstripe-ci-phpunit@master
with:
composer-stability: ${{ matrix.composer-stability }}
phpVersion: ${{ matrix.php-versions }}