-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.1 KB
/
quality-assurance-php.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
name: Quality assurance PHP
on:
pull_request:
branches:
- main
- dev
paths:
- '**.php'
- 'composer.*'
- 'phpcs.*'
- 'phpunit.*'
- 'psalm.*'
jobs:
coding-standards-analysis-php:
uses: inpsyde/reusable-workflows/.github/workflows/coding-standards-php.yml@main
secrets:
COMPOSER_AUTH_JSON: ${{ secrets.PACKAGIST_AUTH_JSON }}
with:
PHP_VERSION: "8.0"
static-code-analysis-php:
uses: inpsyde/reusable-workflows/.github/workflows/static-analysis-php.yml@main
secrets:
COMPOSER_AUTH_JSON: ${{ secrets.PACKAGIST_AUTH_JSON }}
with:
PHP_VERSION: "8.0"
lint-php:
uses: inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main
strategy:
matrix:
php: [ "8.0", "8.1", "8.2" ]
with:
PHP_VERSION: ${{ matrix.php }}
tests-unit-php:
needs: [ coding-standards-analysis-php, static-code-analysis-php ]
uses: inpsyde/reusable-workflows/.github/workflows/tests-unit-php.yml@main
strategy:
matrix:
php: [ "8.0", "8.1", "8.2" ]
with:
PHP_VERSION: ${{ matrix.php }}