Skip to content

Commit 0daf45d

Browse files
committed
ci: implement postgres service and mongo in memory for CI
1 parent 4a7a10b commit 0daf45d

7 files changed

Lines changed: 586 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ jobs:
1010

1111
runs-on: ubuntu-18.04
1212

13+
services:
14+
postgres:
15+
image: postgres
16+
env:
17+
POSTGRES_DATABASE: postgres
18+
POSTGRES_USER: postgres
19+
POSTGRES_PASSWORD: root
20+
POSTGRES_ROOT_PASSWORD: root
21+
ports:
22+
- '5433:5432'
23+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 10
24+
1325
steps:
1426
- name: Checkout
1527
uses: actions/checkout@v2

config/database.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export default {
7474
w: 'majority',
7575
replicaSet: 'rs',
7676
retryWrites: true,
77-
authSource: 'admin',
7877
useNewUrlParser: true,
7978
useUnifiedTopology: true,
8079
},

0 commit comments

Comments
 (0)