-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (47 loc) · 1.27 KB
/
php-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
52
53
54
55
56
name: Test PHP + PHPUnit 4.8
on:
push:
paths:
- 'php-phpunit/**'
- '.github/workflows/php-phpunit**'
branches:
- with_assertions
pull_request:
paths:
- 'php-phpunit/**'
- '.github/workflows/php-phpunit**'
branches:
- with_assertions
jobs:
matrix_build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest, windows-latest ]
php-versions: [ 5.x, 7.x ]
# 8.x not supported
name: PHP ${{ matrix.php-versions }} Build on ${{ matrix.operating-system }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Test
working-directory: php-phpunit
run: |
composer install --prefer-dist
./vendor/bin/phpunit
- name: Test scripts Linux
working-directory: php-phpunit
run: |
./run_first_session.sh
./phpunit.sh
if: matrix.operating-system == 'ubuntu-latest'
- name: Test scripts Windows
working-directory: php-phpunit
run: |
.\run_first_session.bat
.\phpunit.bat
if: matrix.operating-system == 'windows-latest'