Skip to content

Refresh the lock file #6

Refresh the lock file

Refresh the lock file #6

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.3', '8.4', '8.5' ]
steps:
- uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
coverage: none
tools: composer:v2
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction
- name: Lint
run: find src tests -name '*.php' -print0 | xargs -0 -n1 -P4 php -l > /dev/null
- name: Tests
# Checked for output, not just exit status. Anything that exits during
# autoload takes phpunit with it before it runs, and the step passes
# with status 0 having tested nothing.
run: |
composer test | tee phpunit.log
grep -qE 'OK \(|Tests: ' phpunit.log || {
echo '::error::phpunit produced no result -- the suite did not run'
exit 1
}