Skip to content

add compatibility tests #40

add compatibility tests

add compatibility tests #40

Workflow file for this run

name: Syntax Checks
on: [ push, pull_request, workflow_dispatch ]
jobs:
ci:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
name: Syntax Checks Under PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run Syntax Checks
run: |
set -ex
if [[ ${{ matrix.php }} == '7.3' ]] ; then
docker run -q --rm -v "$(pwd)/src:/data" -i cytopia/phplint:${{ matrix.php }}
else
docker run -q --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php${{ matrix.php }} phplint src tests ./counit
fi