Skip to content

Merge pull request #10 from wouterdedroog/feature/add-disable-auth-op… #49

Merge pull request #10 from wouterdedroog/feature/add-disable-auth-op…

Merge pull request #10 from wouterdedroog/feature/add-disable-auth-op… #49

Workflow file for this run

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'] }}