clean up project settings #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |