Skip to content

Commit 3bfae93

Browse files
wip
1 parent c396c68 commit 3bfae93

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/tests.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ on:
66
jobs:
77
run-tests:
88
runs-on: ubuntu-latest
9+
env:
10+
DB_NAME: tests
11+
12+
services:
13+
mysql:
14+
image: mysql:8.0
15+
ports:
16+
- 3306:3306
17+
env:
18+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
19+
MYSQL_DATABASE: ${{ env.DB_NAME }}
920

1021
steps:
1122
- name: Checkout Code
@@ -28,6 +39,7 @@ jobs:
2839
2940
- name: Run Tests
3041
env:
31-
DB_CONNECTION: sqlite
32-
DB_DATABASE: ":memory:"
42+
DB_CONNECTION: mysql
43+
DB_DATABASE: ${{ env.DB_NAME }}
44+
DB_USERNAME: root
3345
run: php artisan test --compact

0 commit comments

Comments
 (0)