-
-
Notifications
You must be signed in to change notification settings - Fork 166
60 lines (48 loc) · 1.95 KB
/
code_analysis.yaml
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
name: Code Analysis
on:
pull_request: null
push:
branches:
- master
jobs:
code_analysis:
strategy:
fail-fast: false
matrix:
php-version: ['7.2', '8.0']
actions:
-
name: Coding Standard
# tip: add "--ansi" to commands in CI to make them full of colors
run: vendor/bin/ecs check src --ansi
-
name: PHPStan
run: vendor/bin/phpstan analyse --ansi
-
name: Check composer.json and composer.lock
run: composer validate --strict --ansi
-
name: Check YAML configs files
run: bin/console lint:yaml config --ansi --parse-tags
-
name: Check TWIG files
run: bin/console lint:twig templates --ansi
-
name: Check XLIFF translation files
run: bin/console lint:xliff translations --ansi
-
name: Check Doctrine Mapping
run: bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction --ansi
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
# test the lowest version, to make sure checks pass on it
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
- run: composer install --no-progress --ansi
- run: ${{ matrix.actions.run }}