forked from ddeboer/GoogleBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (51 loc) · 1.47 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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
tests:
strategy:
fail-fast: true
matrix:
php:
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4
symfony:
- ^3.4
- ~4.0
- ~4.1
- ~4.2
- ~4.3
- ^4.4
name: 'PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, Twig ${{ matrix.twig }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install symfony/flex
run: composer require --dev symfony/flex --no-progress --no-interaction --no-install --no-interaction
- name: Lock Symfony version in composer.json
run: composer config extra.symfony.require '${{ matrix.symfony }}' --no-interaction
- name: Lock Twig version in composer.json
run: |
composer require 'twig/twig: ${{ matrix.twig }}' --no-progress --no-interaction --no-install --no-interaction
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-interaction
- name: PHPUnit
run: vendor/bin/phpunit