-
Notifications
You must be signed in to change notification settings - Fork 252
63 lines (54 loc) · 1.53 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: PHPUnit
on: [push, pull_request]
jobs:
tests:
name: Unit tests
strategy:
matrix:
include:
- php: "8.0"
os: macos-13
- php: "8.0"
mode: high-deps
os: ubuntu-20.04
- php: "8.1"
os: ubuntu-20.04
- php: "8.1"
mode: low-deps
os: ubuntu-20.04
- php: "8.2"
os: ubuntu-20.04
- php: "8.2"
os: ubuntu-20.04
mode: low-deps
- php: "8.3"
mode: experimental
os: ubuntu-20.04
- php: "8.4"
mode: experimental
os: ubuntu-20.04
fail-fast: false
runs-on: "${{ matrix.os }}"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Configure for PHP >= 8.2
if: "matrix.php >= '8.2'"
run: |
composer config platform.php 8.1.99
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
ini-values: date.timezone=Europe/Paris,memory_limit=-1,default_socket_timeout=10,session.gc_probability=0,apc.enable_cli=1,zend.assertions=1
php-version: "${{ matrix.php }}"
extensions: "${{ env.extensions }}"
tools: flex
- name: Install dependencies
run: |
composer update --no-progress --ansi
- name: Run tests
run: |
vendor/bin/simple-phpunit --verbose --coverage-clover=coverage.clover