-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (54 loc) · 1.76 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
name: Tests
on:
- "push"
- "pull_request"
jobs:
tests:
runs-on: "ubuntu-latest"
continue-on-error: "${{ matrix.php-versions == '8.3' || matrix.symfony == '^6.4' || matrix.symfony == '^7.0' }}"
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3']
symfony:
- '^5.4'
- '^6.0'
- '^6.1'
- '^6.2'
- '^6.3'
- '^6.4'
- '^7.0'
exclude:
- symfony: '^7.0'
php-versions: '8.1'
steps:
- uses: "actions/checkout@v4"
- name: "Cache Composer packages"
id: "composer-cache"
uses: "actions/cache@v3"
with:
path: "vendor"
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
"${{ runner.os }}-php-"
- name: "Setup PHP Action"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-versions }}"
extensions: "intl, xdebug"
- name: "Adapt dependencies"
if: ${{ matrix.symfony == '^6.4' || matrix.symfony == '^7.0' }}
run: "composer config minimum-stability dev"
- name: "Install dependencies"
run: |
composer require --dev --update-with-all-dependencies \
symfony/http-kernel:${{ matrix.symfony }} \
symfony/http-foundation:${{ matrix.symfony }} \
symfony/dependency-injection:${{ matrix.symfony }} \
symfony/config:${{ matrix.symfony }} \
symfony/twig-bundle:${{ matrix.symfony }}
- name: "Update to latest dependencies"
run: "composer update"
- name: "Unit + Integration"
run: "vendor/bin/phpunit"
- name: "Mutation tests"
run: "vendor/bin/infection --min-msi=95 --no-progress --threads=5"