-
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (35 loc) · 1.28 KB
/
quality-assurance.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
name: Coding Standards & Static Analysis
on: [push, pull_request]
jobs:
qa:
name: Quality Assurance
runs-on: ubuntu-latest
env:
php-version: '8.2'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.php-version }}
coverage: none # Xdebug is installed by default, so we remove it manually
- name: Creating var directory
run: mkdir -p var/cache
- name: Cache QA results
uses: actions/[email protected]
with:
path: var/cache
key: qa-${{ hashFiles('composer.lock') }}-${{ hashFiles('.github/workflows/quality-assurance.yml') }}
restore-keys: qa-${{ hashFiles('composer.lock') }}-${{ hashFiles('.github/workflows/quality-assurance.yml') }}
- name: Checking Composer
run: composer validate --strict
- uses: "ramsey/composer-install@v2"
- name: Checking for forgotten TODO
run: composer check-todo
- name: Warming up cache
run: php tests/App/bin/console cache:warmup --env=test
- name: Running PHPStan
run: php vendor/bin/phpstan
- name: Running PHP Coding Standards Fixer
run: php vendor/bin/php-cs-fixer fix --dry-run