-
-
Notifications
You must be signed in to change notification settings - Fork 35
59 lines (50 loc) · 1.8 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
name: CI
on:
push:
branches:
- main
pull_request: ~
# schedule:
# - cron: 0 13 * * MON,THU
permissions: read-all
jobs:
build-tools:
uses: 'terminal42/contao-build-tools/.github/workflows/build-tools.yml@main'
tests:
name: PHP ${{ matrix.php }} / Contao ${{ matrix.contao }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
contao: ['4.13', '5.0', '5.1']
exclude:
- php: '7.4'
contao: '5.0'
- php: '7.4'
contao: '5.1'
- php: '8.0'
contao: '5.0'
- php: '8.0'
contao: '5.1'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, fileinfo, filter, gd, hash, intl, json, mbstring, mysqli, pcre, pdo_mysql, zlib
coverage: none
- name: Initialize the database
run: |
sudo /etc/init.d/mysql start
mysql -uroot -proot -e "CREATE database changelanguage"
- name: Checkout
uses: actions/checkout@v3
- name: Require Contao version for tests
run: composer require contao/core-bundle:${{ matrix.contao }}.* --dev --no-update
- name: Install the dependencies
run: composer install --no-interaction --no-progress
- name: Run the unit tests
run: composer run unit-tests
env:
DATABASE_URL: mysql://root:[email protected]:3306/changelanguage