Skip to content

Update SetupTest.php #10

Update SetupTest.php

Update SetupTest.php #10

Workflow file for this run

on: push
name: Laravel CI
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
container: [
"kirschbaumdevelopment/laravel-test-runner:8.2",
"kirschbaumdevelopment/laravel-test-runner:8.3"
]
container:
image: ${{ matrix.container }}
name: ${{ matrix.container }}
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: sendportal_testing
MYSQL_USER: laravel
MYSQL_PASSWORD: secret
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
postgres:
image: postgres
env:
POSTGRES_DB: sendportal_testing
POSTGRES_USER: laravel
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
- name: Install composer dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run Testsuite against MySQL
run: vendor/bin/phpunit
env:
DB_CONNECTION: mysql
DB_HOST: mysql
- name: Run Testsuite against Postgres
run: vendor/bin/phpunit
env:
DB_CONNECTION: pgsql
DB_HOST: postgres