fix PHPStan warnings #24
Workflow file for this run
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: Unit 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", "8.4"] | |
name: Tests Under PHP ${{ matrix.php }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Customize Dockerfile | |
run: sed "s/%%PHP_VERSION%%/${{ matrix.php }}/g" Dockerfile.tpl > Dockerfile | |
- name: Start Docker Containers | |
uses: isbang/[email protected] | |
- name: Run Unit Tests | |
run: | | |
set -ex | |
sleep 2 # Give the containers enough time to warm up before running unit tests. | |
docker compose exec -T php bash -c "./vendor/bin/phpunit" |