-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.54 KB
/
test.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
name: Testing
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
max-parallel: 3
matrix:
php: [ 8.0, 7.4, 7.3 ]
composer_flags: [ "", "--prefer-lowest" ]
symfony_version: [ "3.4.*", "4.3.*", "4.4.*", "5.0.*"]
exclude:
- php: "8.0"
symfony_version: "3.4.*"
- php: "8.0"
symfony_version: "4.3.*"
- php: "8.0"
composer_flags: "--prefer-lowest"
name: PHP ${{ matrix.php }} SF ${{ matrix.symfony_version }} ${{ matrix.composer_flags}}
env:
PHP: ${{ matrix.os }}
COMPOSER_MEMORY_LIMIT: -1
COMPOSER_FLAGS: ${{ matrix.composer_flags }}
SYMFONY_VERSION: ${{ matrix.symfony_version }}
PHP_VERSION: ${{ matrix.php }}
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
extensions: xdebug
- name: Install dependencies
run: |
composer self-update
if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
- name: Execute tests (Unit and Feature)
run: vendor/bin/phpunit --coverage-text
- name: Static analysis with PHPStan
run: vendor/bin/phpstan analyse
- name: Coding style PSR12 Check
run: vendor/bin/phpcs