Skip to content

clean up project settings #17

clean up project settings

clean up project settings #17

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", "8.3"]
name: Tests Under PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Services
run: |
set -ex
sed "s/%%PHP_VERSION%%/${{ matrix.php }}/g" Dockerfile.tpl > Dockerfile
docker-compose up --quiet-pull -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