Skip to content

Commit 3c58c96

Browse files
committed
fix: ci
1 parent dd0995e commit 3c58c96

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,6 @@ jobs:
8282
test:
8383
name: Test
8484
runs-on: ${{ matrix.os }}
85-
services:
86-
postgres:
87-
image: postgres:latest
88-
env:
89-
POSTGRES_USER: postgres
90-
POSTGRES_PASSWORD: postgres
91-
POSTGRES_DB: postgres
92-
ports:
93-
- 5432:5432
9485
strategy:
9586
matrix:
9687
include:
@@ -107,6 +98,11 @@ jobs:
10798
cache-base: main
10899
env:
109100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101+
102+
# running containers via `services` only works on linux
103+
# https://github.com/actions/runner/issues/1866
104+
- name: Setup postgres
105+
uses: ikalnytskyi/action-setup-postgres@v7
110106
- name: Run tests
111107
run: cargo test --workspace
112108

0 commit comments

Comments
 (0)