Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeraymonddowning committed Sep 27, 2024
1 parent 397abae commit 7947748
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
connection: ['mysql', 'pgsql']
include:
- connection: 'mysql'
ports: 3306:3306
port: 3306
- connection: 'pgsql'
ports: 5432:5432
port: 5432

services:
redis:
Expand All @@ -26,14 +26,14 @@ jobs:
mysql:
image: ${{ matrix.connection == 'mysql' && 'mysql:8.0' || '' }}
ports:
- ${{ matrix.ports }}
- ${{ matrix.port }}:${{ matrix.port }}
env:
MYSQL_DATABASE: laravel
MYSQL_ALLOW_EMPTY_PASSWORD: yes
postgres:
image: ${{ matrix.connection == 'pgsql' && 'postgres:17.0' || '' }}
ports:
- ${{ matrix.ports }}
- ${{ matrix.port }}:${{ matrix.port }}
env:
POSTGRES_PASSWORD: password
POSTGRES_USER: root
Expand Down Expand Up @@ -63,4 +63,5 @@ jobs:
- name: Run Tests
env:
DB_CONNECTION: ${{ matrix.connection }}
DB_PORT: ${{ matrix.port }}
run: php artisan test --compact --coverage --min=80

0 comments on commit 7947748

Please sign in to comment.