Merge pull request #10 from wouterdedroog/feature/add-disable-auth-op… #49
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
on: push | |
name: Tests | |
jobs: | |
pest: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:8.0 | |
env: | |
MYSQL_DATABASE: laravel | |
MYSQL_ALLOW_EMPTY_PASSWORD: true | |
MYSQL_ROOT_PASSWORD: '' | |
ports: | |
- 3306/tcp | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Setup PHP with composer v2 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
tools: composer:v2 | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction | |
- name: Prepare the application | |
run: | | |
cp .env.example .env | |
php artisan key:generate | |
- name: Run migrations | |
run: php artisan migrate --force | |
env: | |
APP_ENV: testing | |
DB_PORT: ${{ job.services.mysql.ports['3306'] }} | |
- name: Run Testsuite | |
run: php artisan test | |
env: | |
APP_ENV: testing | |
DB_PORT: ${{ job.services.mysql.ports['3306'] }} |