Skip to content

Commit

Permalink
php-qa.yml // replace PHP_MATRIX with PHP_VERSION
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Leucht <[email protected]>
  • Loading branch information
Chrico authored Sep 4, 2023
1 parent 623b060 commit 49a7e71
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/php-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,21 @@ on:
- 'phpunit*'
- '**.php'

env:
PHP_VERSION_MATRIX: '["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint-php:
strategy:
matrix:
php: ${{ fromJSON(env.PHP_VERSION_MATRIX) }}
uses: inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main
with:
PHP_MATRIX: >-
["8.0", "8.1", "8.2"]
PHP_VERSION: ${{ matrix.php }}
coding-standards-analysis-php:
needs: lint-php
uses: inpsyde/reusable-workflows/.github/workflows/coding-standards-php.yml@main
Expand All @@ -39,10 +44,12 @@ jobs:
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: ${{ fromJSON(env.PHP_VERSION_MATRIX) }}
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_MATRIX: >-
["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
PHP_VERSION: ${{ matrix.php }}

0 comments on commit 49a7e71

Please sign in to comment.