-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.63 KB
/
quality.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
name: "Quality checks"
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
php_quality:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: Setup PHP, extensions and composer with shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, ctype, iconv, intl
env:
update: true
- name: Check PHP Version
run: php -v
- name: "Validate composer.json and composer.lock"
run: composer validate --strict
- name: "Cache Composer packages"
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: "Install Dependencies"
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --ignore-platform-reqs
- name: "Coding Style validation with ECS"
run: vendor/bin/ecs --no-progress-bar
- name: "Static Code validation with PHPStan"
run: vendor/bin/phpstan analyse --no-progress
- name: "Run Pest testsuite"
run: ./vendor/bin/pest --no-progress