-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 1.08 KB
/
test.yaml
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
name: "Test PHP"
on:
pull_request:
push:
branches:
- master
- develop
jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
composer-arguments: ['--prefer-lowest', '']
allowed-to-fail: [false]
include:
- php-versions: '8.1'
composer-arguments: ''
allowed-to-fail: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, curl, zip
coverage: xdebug
tools: composer
- name: Install dependencies
continue-on-error: ${{ matrix.allowed-to-fail }}
run: composer update --no-interaction --no-suggest --no-progress --optimize-autoloader ${{ matrix.composer-arguments }}
- name: Run tests
continue-on-error: ${{ matrix.allowed-to-fail }}
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover