Skip to content

Add baseline GitHub Actions checks #1

Add baseline GitHub Actions checks

Add baseline GitHub Actions checks #1

Workflow file for this run

name: PHP Lint
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: php-parallel-lint
coverage: none
- name: Lint PHP files
run: parallel-lint --exclude vendor --exclude node_modules .