-
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (66 loc) · 1.98 KB
/
tests.yaml
File metadata and controls
82 lines (66 loc) · 1.98 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Tests
on:
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
- name: Validate composer.json
run: composer validate --strict
- name: Composer Audit
run: composer audit
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run code style checks
run: composer lint
tests:
name: Tests
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
include:
- php-version: '8.1'
symfony-version: '6.4.*'
- php-version: '8.2'
symfony-version: '6.4.*'
- php-version: '8.2'
symfony-version: '7.0.*'
- php-version: '8.3'
symfony-version: '6.4.*'
- php-version: '8.3'
symfony-version: '7.0.*'
- php-version: '8.3'
symfony-version: '7.1.*'
- php-version: '8.3'
symfony-version: '7.2.*'
- php-version: '8.4'
symfony-version: '6.4.*'
- php-version: '8.4'
symfony-version: '7.0.*'
- php-version: '8.4'
symfony-version: '7.1.*'
- php-version: '8.4'
symfony-version: '7.2.*'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Create var directory
run: mkdir -p var
- name: Update Symfony constraints in composer.json
run: |
export SYMFONY_VERSION=${{ matrix.symfony-version }}
sed -i -E "s/(\"symfony\/[a-z-]+\":\s*\")[^\"]+/\1$SYMFONY_VERSION/g" composer.json
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run tests
run: composer test