-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (39 loc) · 1.31 KB
/
build.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
# .github/workflows/build.yml
name: "build"
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
name: "PHP ${{ matrix.php}} / ${{matrix.php_unit}} "
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- php: "7.0"
php_unit: 6
- php: "7.1"
php_unit: 7
- php: "7.2"
php_unit: 7
- php: "7.3"
php_unit: 7
- php: "7.2"
php_unit: 8
- php: "7.3"
php_unit: 8
- php: "8.1"
php_unit: 9
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: "Build environment"
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
- name: "Dependencies"
run: |
php --version
composer --version
composer require phpunit/phpunit:^${{matrix.php_unit}} --update-with-dependencies
composer install --no-interaction
- name: "Tests"
run: ./run_tests.sh