Skip to content

Fix workflow errors #71

Fix workflow errors

Fix workflow errors #71

Workflow file for this run

on:
push:
branches:
- main
pull_request:
types: [ opened, labeled, synchronize ]
name: Inspections
jobs:
runPHPCSInspection:
name: Run PHPCS inspection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Install dependencies
run: composer install --dev --prefer-dist --no-progress --no-suggest
- name: PHPCS check
run: ./vendor/bin/phpcs ./
- uses: shivammathur/setup-php@2.30.0
with:
php-version: 8.1
- name: Check PHP 8.1 syntax
run: find -L . -path ./vendor -prune -o -path ./tests -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l