Skip to content

Update php-qa.yml

Update php-qa.yml #10

Workflow file for this run

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'
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) }}

Check failure on line 29 in .github/workflows/php-qa.yml

View workflow run for this annotation

GitHub Actions / PHP QA

Invalid workflow file

The workflow is not valid. .github/workflows/php-qa.yml (Line: 29, Col: 14): Unrecognized named-value: 'env'. Located at position 10 within expression: fromJSON(env.PHP_VERSION_MATRIX) .github/workflows/php-qa.yml (Line: 29, Col: 14): Unexpected value '${{ fromJSON(env.PHP_VERSION_MATRIX) }}'
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: ${{ 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_VERSION: ${{ matrix.php }}