Merge pull request #167 from soup-bowl/dependabot/composer/dev-depend… #243
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: Per-commit CI Test | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
paths-ignore: | |
- '.devcontainer/**' | |
- '.docker/**' | |
- '.github/**' | |
- '.vscode/**' | |
pull_request: | |
branches: | |
- develop | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [7.3, 7.4, 8.0, 8.1, 8.2] | |
services: | |
smtp_mock: | |
image: mailhog/mailhog:latest | |
ports: | |
- 1025:1025 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Composer Dependencies | |
uses: php-actions/composer@v6 | |
with: | |
dev: yes | |
args: --profile --ignore-platform-reqs | |
- name: Create .env Config | |
run: | | |
touch .env | |
echo SMTP_HOST=localhost >> .env | |
echo SMTP_AUTH=0 >> .env | |
echo SMTP_USER= >> .env | |
echo SMTP_PASS= >> .env | |
echo SMTP_PORT=1025 >> .env | |
echo SMTP_FROM=gh-unit@example.com >> .env | |
echo realpath .env | |
cat .env | |
- name: Run PHPUnit | |
run: vendor/bin/phpunit --configuration phpunit.xml --colors=always | |
env: | |
PHP_VERSION: ${{ matrix.php-version }} |