-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (49 loc) · 1.38 KB
/
php-qa.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
45
46
47
48
49
name: PHP QA
on:
workflow_dispatch:
pull_request:
paths:
- '**/php-qa.yml'
- 'composer.*'
- 'phpcs*'
- 'psalm*'
- 'phpunit*'
- '**.php'
push:
paths:
- '**/php-qa.yml'
- 'composer.*'
- 'phpcs*'
- 'psalm*'
- 'phpunit*'
- '**.php'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-php:
strategy:
matrix:
php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
uses: inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main
with:
PHP_VERSION: ${{ matrix.php }}
coding-standards-analysis-php:
needs: lint-php
uses: inpsyde/reusable-workflows/.github/workflows/coding-standards-php.yml@main
static-code-analysis-php:
needs: lint-php
uses: inpsyde/reusable-workflows/.github/workflows/static-analysis-php.yml@main
with:
PSALM_ARGS: '--output-format=github --no-cache --find-unused-psalm-suppress'
tests-unit-php:
needs: [ static-code-analysis-php, coding-standards-analysis-php ]
strategy:
matrix:
php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
uses: inpsyde/reusable-workflows/.github/workflows/tests-unit-php.yml@main
secrets:
COMPOSER_AUTH_JSON: ${{ secrets.COMPOSER_AUTH_JSON }}
with:
PHPUNIT_ARGS: '--testsuite=Unit --coverage-text'
PHP_VERSION: ${{ matrix.php }}