-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (39 loc) · 1.15 KB
/
php-unit.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
name: PHPUnit
on: [ push ]
jobs:
PHPUnit:
runs-on: ubuntu-latest
strategy:
matrix:
PHP: [ "7.4", "8.0", "8.1", "8.2", "8.3" ]
services:
mysql:
image: mysql:5.7
env:
MYSQL_HOST: 127.0.0.1
MYSQL_DATABASE: bitrix-ci
MYSQL_USER: bitrix-ci
MYSQL_PASSWORD: bitrix-ci
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
env:
MYSQL_HOST: 127.0.0.1
MYSQL_DATABASE: bitrix-ci
MYSQL_USER: bitrix-ci
MYSQL_PASSWORD: bitrix-ci
DEBUG: true
steps:
- name: Checkout source
uses: actions/checkout@v1
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.PHP }}
tools: composer
ini-values: short_open_tag=1, mbstring.func_overload=2
- name: Install dependencies
run: composer install --no-ansi --no-interaction --no-suggest --no-progress --prefer-dist
- name: Run PHPUnit tests
run: php vendor/bin/phpunit