use different db connection on gh actions
This commit is contained in:
@@ -111,6 +111,11 @@ jobs:
|
||||
matrix:
|
||||
node-version: [12.x]
|
||||
mongodb-version: [4.2]
|
||||
env:
|
||||
# The test database connection uri is specified here and not taken from
|
||||
# config.json.example because it differs between local installs and
|
||||
# github actions, because the github action replica set only has 1 member
|
||||
TEST_DB_URI=mongodb://localhost:27017/habitica-test?replicaSet=habitica-test-rs
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
@@ -139,6 +144,11 @@ jobs:
|
||||
matrix:
|
||||
node-version: [12.x]
|
||||
mongodb-version: [4.2]
|
||||
env:
|
||||
# The test database connection uri is specified here and not taken from
|
||||
# config.json.example because it differs between local installs and
|
||||
# github actions, because the github action replica set only has 1 member
|
||||
TEST_DB_URI=mongodb://localhost:27017/habitica-test?replicaSet=habitica-test-rs
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
@@ -167,6 +177,11 @@ jobs:
|
||||
matrix:
|
||||
node-version: [12.x]
|
||||
mongodb-version: [4.2]
|
||||
env:
|
||||
# The test database connection uri is specified here and not taken from
|
||||
# config.json.example because it differs between local installs and
|
||||
# github actions, because the github action replica set only has 1 member
|
||||
TEST_DB_URI=mongodb://localhost:27017/habitica-test?replicaSet=habitica-test-rs
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
|
||||
+2
-2
@@ -32,7 +32,8 @@
|
||||
"LOGGLY_SUBDOMAIN": "example-subdomain",
|
||||
"LOGGLY_TOKEN": "example-token",
|
||||
"MAINTENANCE_MODE": "false",
|
||||
"NODE_DB_URI": "mongodb://localhost:27017/habitrpg",
|
||||
"NODE_DB_URI": "mongodb://localhost:27017,localhost:27018,localhost:27019/habitica-dev?replicaSet=rs",
|
||||
"TEST_DB_URI": "mongodb://localhost:27017,localhost:27018,localhost:27019/habitica-dev?replicaSet=rs",
|
||||
"MONGODB_POOL_SIZE": "10",
|
||||
"NODE_ENV": "development",
|
||||
"PATH": "bin:node_modules/.bin:/usr/local/bin:/usr/bin:/bin",
|
||||
@@ -70,7 +71,6 @@
|
||||
"SLACK_URL": "https://hooks.slack.com/services/some-url",
|
||||
"STRIPE_API_KEY": "aaaabbbbccccddddeeeeffff00001111",
|
||||
"STRIPE_PUB_KEY": "22223333444455556666777788889999",
|
||||
"TEST_DB_URI": "mongodb://localhost:27017/habitica-test?replicaSet=habitica-test-rs",
|
||||
"TRANSIFEX_SLACK_CHANNEL": "transifex",
|
||||
"WEB_CONCURRENCY": 1,
|
||||
"SKIP_SSL_CHECK_KEY": "key",
|
||||
|
||||
Reference in New Issue
Block a user