Skip to content

Commit 064e413

Browse files
committed
add mongo init
1 parent a296b33 commit 064e413

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ on:
66
jobs:
77
lint-and-test:
88
runs-on: ubuntu-latest
9+
container: node:lts-jod
10+
services:
11+
mongo:
12+
image: mongo
13+
ports:
14+
- 27017:27017
15+
options: >-
16+
--health-cmd mongo
17+
--health-interval 10s
18+
--health-timeout 5s
19+
--health-retries 5
20+
--name mongo
921
steps:
1022
- name: Checkout Code
1123
uses: actions/checkout@v5
@@ -20,6 +32,9 @@ jobs:
2032
run: ./scripts/generate-env.sh
2133
- name: Install Dependencies
2234
run: pnpm install --frozen-lockfile
35+
- name: Init Mongo
36+
run: |
37+
docker run mongo mongosh --eval "rs.initiate({_id: 'rs0', members: [{_id: 0, host: 'localhost:27017'}]});"
2338
- name: Install Playwright
2439
run: pnpm --filter "@opendatacapture/e2e" exec playwright install --with-deps
2540
- name: Lint

0 commit comments

Comments
 (0)