Skip to content

Running TestSuite

Running TestSuite #6

Workflow file for this run

name: TestSuite
run-name: Running TestSuite
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
container:
image: kirschbaumdevelopment/laravel-test-runner:8.2
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: testing
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install composer dependencies
run: |
composer install --no-scripts
- name: Prepare Laravel Application
run: |
cp .env.ci .env
php artisan key:generate
php artisan migrate:fresh --seed
- name: Install front-end dependencies
run: |
npm install
npm run build
- name: Run TestSuite
run: vendor/bin/phpunit tests/