-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add matrix to github actions. * Update `composer.json`. * Update `phpunit.xml`. * Update `docker-compose.yml`. --------- Co-authored-by: david_smith <[email protected]>
- Loading branch information
1 parent
c34ac56
commit 014c964
Showing
6 changed files
with
37 additions
and
86 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# run-tests.sh | ||
set -e | ||
|
||
php_versions=("php83" "php82" "php81") | ||
|
||
for version in "${php_versions[@]}"; do | ||
echo "Setting up environment..." | ||
rm composer.lock | ||
docker compose run --rm "$version"composer composer install | ||
echo "Running tests on $version..." | ||
if ! docker compose run --rm "$version" vendor/bin/phpunit; then | ||
echo "Tests failed on $version." | ||
exit 1 | ||
fi | ||
done | ||
echo "All tests passed!" |