-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (37 loc) · 1.11 KB
/
code.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
name: Code
on:
push: ~
pull_request: ~
jobs:
code:
name: Code analyse on ${{ matrix.php }} (${{ matrix.deps_strategy }} dependencies)
runs-on: ubuntu-latest
strategy:
matrix:
deps_strategy: [ '', '--prefer-lowest' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
symfony: [ ^3.0, ^4.0, ^5.0, ^6.0, ^7.0 ]
exclude:
- php: '7.4'
symfony: ^6.0
- php: '7.4'
symfony: ^7.0
- php: '8.0'
symfony: ^7.0
- php: '8.1'
symfony: ^7.0
steps:
- name: Update code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
tools: composer:v2
- name: Install dependencies
run: composer update ${{ matrix.deps_strategy }} --with symfony/yaml:${{ matrix.symfony }}
- name: Code style
run: vendor/bin/php-cs-fixer fix --ansi --allow-risky=yes --dry-run
- name: Code quality
run: vendor/bin/phpstan analyse --no-progress --ansi