Skip to content

Fix workflow [release-5.2.0] #170

Fix workflow [release-5.2.0]

Fix workflow [release-5.2.0] #170

Workflow file for this run

# GitHub Action for Osclass
name: Test PHP
on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4','8.0', '8.1', '8.2' ]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, pdo_sqlite, pdo_mysql
- name: Test Syntax
run: find -L . ! -name 'HTMLPurifierExtras.autoload-legacy.php' ! -name 'HTMLPurifier.autoload-legacy.php' -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l