-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (42 loc) · 1.34 KB
/
phpunit_upcoming_symfony.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
name: PHPUnit - Upcoming Symfony versions
on:
push:
paths:
- 'Bundle/**'
- 'composer.json'
pull_request:
paths:
- 'Bundle/**'
- 'composer.json'
- '.github/workflows/phpunit_upcoming_symfony.yaml'
jobs:
phpunit:
name: "phpunit - php ${{ matrix.php-version }} / symfony ${{ matrix.symfony-version }}"
runs-on: ubuntu-20.04
continue-on-error: false
strategy:
matrix:
php-version: ['7.4', '8.0']
symfony-version: ['5.4', '6.0']
fail-fast: false
steps:
- name: 'Checkout code'
uses: actions/checkout@v2
- name: 'Install PHP with extensions'
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, pdo, pdo_sqlite, sqlite3
ini-values: date.timezone=UTC
- name: 'Install project dependencies'
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
run: |
composer config minimum-stability RC
composer update --no-interaction --prefer-dist --optimize-autoloader --no-progress
vendor/bin/simple-phpunit install
- name: 'Run tests'
env:
SYMFONY_DEPRECATIONS_HELPER: 'max[indirect]=9999&max[direct]=0&max[self]=9999'
run: vendor/bin/simple-phpunit -v