-
Notifications
You must be signed in to change notification settings - Fork 28
45 lines (40 loc) · 1.09 KB
/
tests.yml
File metadata and controls
45 lines (40 loc) · 1.09 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
name: Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
symfony-version:
- 4.4.*
- 5.3.*
- 5.4.*
include:
- php-version: 7.1
symfony-version: 4.4.*
- php-version: 8.1
symfony-version: 6.0.*
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Install symfony version from matrix
env:
SYMFONY_VERSION: ${{ matrix.symfony-version }}
run: composer require symfony/symfony:$SYMFONY_VERSION --no-update
- name: Install dependencies
run: composer update --prefer-dist --no-interaction
- name: Code style check
run: bin/php-cs-fixer fix --dry-run --using-cache=no --verbose
- name: Static analysis
run: bin/phpstan analyse
- name: Unit tests
run: bin/atoum