Skip to content

Commit 824efd0

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 443fc7e commit 824efd0

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,35 @@ jobs:
2929
- "v4.5"
3030
- "v4.6"
3131
database:
32-
- "postgresql"
32+
- "postgres"
3333
- "mysql"
3434
- "sqlite"
3535
exclude:
3636
- rails-version: "8.0"
3737
solidus-branch: "v4.4"
38+
services:
39+
postgres:
40+
image: postgres:16
41+
env:
42+
POSTGRES_HOST_AUTH_METHOD: trust
43+
options: >-
44+
--health-cmd="pg_isready"
45+
--health-interval=10s
46+
--health-timeout=5s
47+
--health-retries=5
48+
ports:
49+
- 5432:5432
50+
mysql:
51+
image: mysql:8
52+
env:
53+
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
54+
options: >-
55+
--health-cmd="mysqladmin ping"
56+
--health-interval=10s
57+
--health-timeout=5s
58+
--health-retries=5
59+
ports:
60+
- 3306:3306
3861
steps:
3962
- uses: actions/checkout@v4
4063
- name: Run extension tests

0 commit comments

Comments
 (0)