Skip to content

Commit c784f62

Browse files
committed
CI: Setup database services
We need this to test the various database adapters, as compoiste actions do not support starting services.
1 parent 8e6280a commit c784f62

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
@@ -19,6 +19,29 @@ jobs:
1919
rspec:
2020
name: Solidus ${{ matrix.solidus-branch }}, Rails ${{ matrix.rails-version }} and Ruby ${{ matrix.ruby-version }} on ${{ matrix.database }}
2121
runs-on: ubuntu-24.04
22+
services:
23+
postgres:
24+
image: postgres:16
25+
env:
26+
POSTGRES_HOST_AUTH_METHOD: trust
27+
options: >-
28+
--health-cmd="pg_isready"
29+
--health-interval=10s
30+
--health-timeout=5s
31+
--health-retries=5
32+
ports:
33+
- 5432:5432
34+
mysql:
35+
image: mysql:8.0
36+
env:
37+
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
38+
options: >-
39+
--health-cmd="mysqladmin ping"
40+
--health-interval=10s
41+
--health-timeout=5s
42+
--health-retries=5
43+
ports:
44+
- 3306:3306
2245
strategy:
2346
fail-fast: false
2447
matrix:
@@ -49,7 +72,7 @@ jobs:
4972
steps:
5073
- uses: actions/checkout@v4
5174
- name: Run extension tests
52-
uses: solidusio/test-solidus-extension@main
75+
uses: solidusio/test-solidus-extension@support-testings-dbs
5376
with:
5477
database: ${{ matrix.database }}
5578
rails-version: ${{ matrix.rails-version }}

0 commit comments

Comments
 (0)