forked from ar-koder/mosparo-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.55 KB
/
tests-maintained-symfony.yaml
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
# OS: Linux; Symfony: all the maintained Symfony versions (except 'current stable'); PHP: latest stable
name: "Tests - Maintained Symfony versions"
on:
pull_request:
push:
branches:
- 'main'
env:
fail-fast: true
permissions:
contents: read
jobs:
tests:
name: "Symfony ${{ matrix.symfony-version }} / PHP ${{ matrix.php-version }}"
runs-on: 'ubuntu-latest'
continue-on-error: false
strategy:
matrix:
php-version: ['8.1']
symfony-version: ['5.4', '6.0', '6.1']
steps:
- name: 'Checkout code'
uses: actions/checkout@v4
- name: 'Install PHP with extensions'
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
tools: composer:v2
extensions: mbstring, intl, pdo, pdo_sqlite, sqlite3
ini-values: date.timezone=UTC
- name: 'Install project dependencies'
run: |
composer require --no-progress --no-scripts --no-plugins symfony/flex
composer config extra.symfony.require "${{ matrix.symfony-version }}"
composer update --no-interaction --prefer-dist --optimize-autoloader
vendor/bin/simple-phpunit install
- name: 'Run tests'
env:
SYMFONY_DEPRECATIONS_HELPER: 'max[total]=999999'
run: vendor/bin/simple-phpunit -v