Skip to content

misc adjustments

misc adjustments #6

Workflow file for this run

name: Tests
on: [ push, pull_request, workflow_dispatch ]
jobs:
ci:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php: ["7.3", "7.4", "8.0", "8.1", "8.2"]
name: Tests Under PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Services
run: |
set -ex
sed "s/%%PHP_VERSION%%/${{ matrix.php }}/g" Dockerfile.tpl > Dockerfile
docker-compose up -d
sleep 2 # Give the containers enough time to warm up before running unit tests.
- name: Run Unit Tests
run: docker compose exec -T php bash -c "./vendor/bin/phpunit"
- name: Stop and Remove Docker Containers
run: docker-compose down