Skip to content

Commit 6b0a4ae

Browse files
Add database services
Postgres and mysql are not set up properly by default so we need to add these to make sure it has the proper setup. Co-Authored-By: Sofia Besenski <sofia@super.gd>
1 parent 0fe5b07 commit 6b0a4ae

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,35 @@ jobs:
2525
solidus-branch:
2626
- "v4.5"
2727
database:
28+
- "postgres"
29+
- "mysql"
2830
- "sqlite"
2931
exclude:
3032
- rails-version: "8.0"
3133
solidus-branch: "v4.4"
34+
services:
35+
postgres:
36+
image: postgres:16
37+
env:
38+
POSTGRES_HOST_AUTH_METHOD: trust
39+
options: >-
40+
--health-cmd="pg_isready"
41+
--health-interval=10s
42+
--health-timeout=5s
43+
--health-retries=5
44+
ports:
45+
- 5432:5432
46+
mysql:
47+
image: mysql:8
48+
env:
49+
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
50+
options: >-
51+
--health-cmd="mysqladmin ping"
52+
--health-interval=10s
53+
--health-timeout=5s
54+
--health-retries=5
55+
ports:
56+
- 3306:3306
3257
steps:
3358
- uses: actions/checkout@v4
3459
- name: Run extension tests

0 commit comments

Comments
 (0)