-
-
Notifications
You must be signed in to change notification settings - Fork 205
55 lines (45 loc) · 1.58 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Test
on: [push, pull_request]
jobs:
test:
name: PHP ${{ matrix.php-version }} (${{ matrix.experimental && 'experimental' || 'full support' }})
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
php-version:
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
experimental: [false]
include:
- php-version: 8.1
experimental: true
continue-on-error: ${{ matrix.experimental }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
tools: composer:v2
- name: Install Composer dependencies
uses: ramsey/composer-install@v1
with:
composer-options: --prefer-dist
continue-on-error: ${{ matrix.experimental }}
- name: Setup PCOV
run: |
composer require pcov/clobber
vendor/bin/pcov clobber
continue-on-error: true
- name: Run Tests
run: composer tests
continue-on-error: ${{ matrix.experimental }}
- name: Check coding style
run: composer coding-style
continue-on-error: ${{ matrix.experimental }}