forked from rvanlaak/SettingsBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (53 loc) · 2 KB
/
main.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
name: Tests
on: [ pull_request ]
jobs:
static-code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run PHPStan
uses: docker://jakzal/phpqa
with:
args: phpstan analyze
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.2', '7.4', '8.0' ]
symfony: [ '4.4.*', '5.3.*' ]
name: Test on Symfony ${{ matrix.symfony }} with PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
- run: composer require symfony/framework-bundle:${{ matrix.symfony }} --no-update
- run: composer require symfony/form:${{ matrix.symfony }} --no-update
- run: composer install
- run: make test
test-lowest:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.2', '7.3' ]
symfony: [ '3.4.*', '4.4.*' ]
name: Test lowest on Symfony ${{ matrix.symfony }} with PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
- run: composer require symfony/framework-bundle:${{ matrix.symfony }} --no-update
- run: composer require symfony/form:${{ matrix.symfony }} --no-update
- run: composer install
- run: make test-lowest
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run PHP-CS-Fixer
uses: docker://jakzal/phpqa
with:
args: php-cs-fixer fix --dry-run