-
Notifications
You must be signed in to change notification settings - Fork 8
67 lines (59 loc) · 2.26 KB
/
ci.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
64
65
66
67
name: CI
on:
push:
pull_request:
jobs:
check_composer:
name: Check composer.json
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: '8.3'
- run: composer validate --strict --no-check-lock
tests:
name: "Tests on PHP ${{ matrix.php }}${{ matrix.name_suffix }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
name_suffix: [ '' ]
composer_flags: [ '' ]
symfony_version: [ '' ]
include:
- php: '7.2'
name_suffix: ' (lowest deps)'
composer_flags: '--prefer-lowest'
# Test against Symfony LTS versions
- php: '8.1'
name_suffix: ' (Symfony 4)'
composer_flags: ''
symfony_version: '4.4.*'
- php: '8.1'
name_suffix: ' (Symfony 5)'
composer_flags: ''
symfony_version: '5.4.*'
- php: '8.2'
name_suffix: ' (Symfony 6)'
composer_flags: ''
symfony_version: '6.4.*'
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
coverage: "none"
php-version: "${{ matrix.php }}"
- name: Install symfony/flex
if: matrix.symfony_version != ''
run: |
composer config --global --no-plugins allow-plugins.symfony/flex true &&
composer global require symfony/flex
- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony_version }}
run: composer update --ansi --no-progress --prefer-dist --no-interaction ${{ matrix.composer_flags }}
- name: Run tests
run: vendor/bin/phpunit -v --colors=always