-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (58 loc) · 1.81 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Tests
on:
push:
branches:
- 'master'
- '[0-9].[0-9]+'
pull_request: ~
jobs:
tests:
name: ${{ matrix.php }} / ${{ matrix.symfony }} / ${{ matrix.phpunit }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.1']
symfony: ['~5.4.0', '~6.4.0']
phpunit: ['phpunit.xml', 'phpunit-api.xml']
deps: ['normal']
include:
- php: '7.4'
symfony: '~3.4.0'
phpunit: 'phpunit.xml'
- php: '7.4'
symfony: '~3.4.0'
phpunit: 'phpunit-api-legacy.xml'
- php: '7.4'
symfony: '~3.4.0'
phpunit: 'phpunit.xml'
deps: 'low'
- php: '7.4'
symfony: '~3.4.0'
phpunit: 'phpunit-api-legacy.xml'
deps: 'low'
exclude:
- php: '8.1'
symfony: '~3.4.0'
- php: '7.4'
symfony: '~6.4.0'
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- run: composer --version
- run: composer validate --strict
# Install Flex as a global dependency to enable usage of extra.symfony.require
# while keeping Flex recipes from applying
- run: composer global config --no-plugins allow-plugins.symfony/flex true
- run: composer global require --no-scripts symfony/flex
- run: composer config extra.symfony.require ${{ matrix.symfony }}
-
run: composer update --prefer-dist
if: ${{ matrix.deps != 'low' }}
-
run: composer update --prefer-dist --prefer-lowest --prefer-stable
if: ${{ matrix.deps == 'low' }}
- run: vendor/bin/phpunit -c ${{ matrix.phpunit }} --colors=always