Skip to content

Commit

Permalink
feat(test): use mongo in memory for tests (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin authored Nov 12, 2024
1 parent 2e6573c commit 7878c85
Show file tree
Hide file tree
Showing 4 changed files with 795 additions and 898 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Lint and test

on:
pull_request:
push:
Expand All @@ -25,19 +26,13 @@ jobs:
- name: "Checking type errors"
run: |
npm run check
test:
runs-on: ubuntu-latest
timeout-minutes: 10

services:
mongodb:
image: mongo:6.0.5
ports:
- 27017:27017

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "20"
Expand All @@ -47,6 +42,7 @@ jobs:
- name: "Tests"
run: |
npm run test
build-check:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
Loading

0 comments on commit 7878c85

Please sign in to comment.