-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (36 loc) · 1.11 KB
/
ci.yml
File metadata and controls
44 lines (36 loc) · 1.11 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
name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
tests:
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.1.*', '7.2.*']
include:
# Symfony 8 requires PHP 8.4+
- php: '8.4'
symfony: '8.0.*'
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: gd, bcmath
coverage: none
- name: Install Symfony ${{ matrix.symfony }}
run: |
composer require --no-update symfony/framework-bundle:${{ matrix.symfony }}
composer require --no-update symfony/twig-bundle:${{ matrix.symfony }}
composer require --no-update symfony/options-resolver:${{ matrix.symfony }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run tests
run: vendor/bin/phpunit