Skip to content

document 61c420a, #846 #1

document 61c420a, #846

document 61c420a, #846 #1

Workflow file for this run

# This workflow will run the tests on various versions of PHP.
name: PHP Tests
on:
push:
pull_request:
types: [opened]
# TODO: enable to run once a week regardless of commits, but this will expire if repo is inactive for a longer time
# schedule:
# - cron: '12 3 4 * *'
jobs:
test-php:
name: Run PHP Tests
runs-on: ubuntu-22.04
# for available versions see https://github.com/marketplace/actions/setup-php-action#tada-php-support
strategy:
matrix:
phpversion: ['7.4', '8.1', '8.2', '8.3']
steps:
- uses: actions/checkout@v4
- name: Setup PHP and dependencies
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.phpversion }}
extensions: pdo-sqlite
tools: phpunit
# TODO: enable coverage check
coverage: none
env:
fail-fast: true
- name: Run Tests
run: |
cd tests
phpunit --configuration config.xml.dist include/*