Skip to content

bump actions/checkout from 5 to 6 #45

bump actions/checkout from 5 to 6

bump actions/checkout from 5 to 6 #45

Workflow file for this run

name: Tests
on: [ push, pull_request, workflow_dispatch ]
jobs:
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
php: ["7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
name: Tests Under PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Install dependencies
uses: nick-invision/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
- name: Run Unit Tests
run: ./vendor/bin/phpunit
- name: Run Syntax Checks
run: |
set -e
if [ ${{ matrix.php }} == '7.3' ] ; then
docker run -q --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:1.60.0-php7.3 phplint examples src
else
docker run -q --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php${{ matrix.php }} phplint examples src
fi