Skip to content

debug

debug #104

Workflow file for this run

name: PHPUnit & PHPStan
on: [push]
permissions:
contents: read
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Load .env file
uses: xom9ikk/dotenv@v2
- uses: isbang/[email protected]
with:
compose-file: "./docker-compose.yml"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Waiting for MySQL
run: |
while ! mysqladmin ping --host=${{ env.MYSQL_HOST }} --port=${{ env.MYSQL_PORT }} --password=${{ env.MYSQL_PASSWORD }} --silent; do
sleep 1
done
- name: PHPUnit
run: ./vendor/bin/phpunit