Skip to content

GitHub Action workflows #2

GitHub Action workflows

GitHub Action workflows #2

Workflow file for this run

name: PHP Test Project
on:
workflow_dispatch:
pull_request:
paths:
- '**workflows/test-project.yml'
- '**.php'
- '**tests/example/phpunit.xml.dist'
- '**composer.json'
push:
paths:
- '**workflows/test-project.yml'
- '**.php'
- '**tests/example/phpunit.xml.dist'
- '**composer.json'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-project-php:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:

Check failure on line 28 in .github/workflows/test-project.yml

View workflow run for this annotation

GitHub Actions / PHP Test Project

Invalid workflow file

The workflow is not valid. .github/workflows/test-project.yml (Line: 28, Col: 14): Unexpected value '' .github/workflows/test-project.yml (Line: 29, Col: 7): Unexpected value 'php-version'
php-version: ["7.4", "8.0", "8.1", "8.2"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v2
with:
composer-options: '-d tests/example'
- name: Run tests
run: composer tests:example-project