Skip to content

Fixed using PersonEventFactory #245

Fixed using PersonEventFactory

Fixed using PersonEventFactory #245

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: composer:v2
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader --no-scripts
- name: Run Pint (Code Style Check)
run: ./vendor/bin/pint --test
pest:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.4
env:
MYSQL_DATABASE: genealogy_test
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping --silent"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: composer:v2
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader --no-scripts
- name: Setup environment
run: cp .env.testing .env
- name: Run Tests
run: php artisan test --coverage-clover coverage.xml
env:
DB_CONNECTION: mysql
DB_HOST: 127.0.0.1
DB_PORT: 3306
DB_DATABASE: genealogy_test
DB_USERNAME: root
DB_PASSWORD: password