-
-
Notifications
You must be signed in to change notification settings - Fork 42
50 lines (43 loc) · 1.08 KB
/
ci.yml
File metadata and controls
50 lines (43 loc) · 1.08 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
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
name: PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- 8.2
- 8.3
- 8.4
symfony:
- 6.4.*
- 7.4.*
- 8.0.*
exclude:
# Symfony 8.0 requires PHP 8.4+
- php: '8.2'
symfony: '8.0.*'
- php: '8.3'
symfony: '8.0.*'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP and install Symfony Flex globally
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: mbstring, openssl, sodium
tools: flex
- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
run: composer update --prefer-dist --no-progress --no-interaction
- name: Run tests
run: vendor/bin/phpunit