Skip to content

check php syntax on all supported versions #1

check php syntax on all supported versions

check php syntax on all supported versions #1

name: Check PHP syntax
on: [ push, pull_request ]
jobs:
build:

Check failure on line 6 in .github/workflows/php-check-syntax.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/php-check-syntax.yaml

Invalid workflow file

You have an error in your yaml syntax on line 6
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', 'highest']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer
- name: checkout repo
uses: actions/checkout@v3
- run: composer run check-syntax