-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (45 loc) · 1.05 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
name: CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- '**'
env:
APP_ENV: test
# Match Toolforge's MariaDB version.
DATABASE_URL: mysql://root:[email protected]:3306/wscontest_tests?serverVersion=mariadb-10.1.48
jobs:
build:
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: wscontest_tests
MYSQL_ROOT_PASSWORD: testpwd
ports:
- '3306:3306'
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
php: [ '7.3', '7.4', '8.0', '8.1', '8.2' ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.php}}
extensions: pdo
- name: Install
run: |
composer install
./bin/console doctrine:migrations:migrate
npm ci
- name: Test
run: |
composer test
npm test