Skip to content

feature: add a repository method that can delete a user #20

feature: add a repository method that can delete a user

feature: add a repository method that can delete a user #20

Workflow file for this run

name: PHPUnit Tests
on:
push:
branches:
- master
jobs:
phpunit:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
env:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: test_user
MYSQL_USER: test_user
MYSQL_PASSWORD: test_user
ports:
- "3306:3306"
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install dependencies
run: composer install
- name: Setup MySQL and create test_user table
run: |
mysql -h127.0.0.1 -u test_user -ptest_user test_user < ./resources/structure.sql
- name: Run PHPUnit tests
run: ./vendor/bin/phpunit --configuration=phpunit.xml