-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (41 loc) · 1.14 KB
/
phpunit_mysql_5_7.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
name: PHPunit Myql 5.7
on:
push:
branches:
- master
pull_request: null
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
name: PHPunit PHP ${{ matrix.php }}
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: populator
MYSQL_ROOT_PASSWORD: 123
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Composer update
run: composer update --no-progress --no-interaction
- name: Start mysql database
run: sudo /etc/init.d/mysql start
- name: PHPunit
run: vendor/bin/phpunit --coverage-text
env:
POPULATOR_ADAPTER: mysql
POPULATOR_HOST: 127.0.0.1
POPULATOR_PORT: ${{ job.services.mysql.ports[3306] }}
POPULATOR_PASSWORD: 123