-
-
Notifications
You must be signed in to change notification settings - Fork 134
55 lines (45 loc) · 1.54 KB
/
tests.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
name: Tests
on:
push:
pull_request:
jobs:
test:
name: PHPUnit Tests
runs-on: ubuntu-latest
env:
COMPOSER_ROOT_VERSION: 1.x-dev
SYMFONY_PHPUNIT_VERSION: 9.5
strategy:
matrix:
include:
- php: '7.1'
- php: '7.2'
- php: '7.3'
- php: '7.4'
- php: '8.0'
- php: '8.1'
- php: '8.2'
- php: '8.3'
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
extensions: "apcu, intl, mbstring, odbc, uuid"
ini-values: "memory_limit=-1, session.gc_probability=0, apc.enable_cli=1"
php-version: "${{ matrix.php }}"
tools: "composer:v2"
- name: Install dependencies
run: composer --prefer-source --no-progress --ansi install
- name: Configure for PHP <= 7.2
if: "${{ matrix.php <= '7.2' }}"
run: |
echo SYMFONY_PHPUNIT_VERSION=7.5 >> $GITHUB_ENV
- name: Run tests
run: |
ok=0
./vendor/bin/simple-phpunit || ok=1
[[ "${{ matrix.mode }}" = experimental ]] || (exit $ok)