Skip to content

Commit

Permalink
move mongo service to build
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Dec 7, 2023
1 parent 1c17e71 commit 75368c5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/blt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ jobs:
build:

runs-on: ubuntu-latest

services:
mongodb:
image: mongo:latest
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: nmdc
MONGO_HOST: localhost
ports:
- 27017:27017
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
Expand All @@ -31,17 +40,8 @@ jobs:
test:
runs-on: ubuntu-latest
needs: build
services:
mongodb:
image: mongo
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: nmdc
MONGO_HOST: localhost
ports:
- 27017:27017
options: --health-cmd "mongo --version" --health-interval 10s --health-timeout 5s --health-retries 12


steps:
# - uses: actions/checkout@v3
# - name: Set up Python 3.9
Expand Down

0 comments on commit 75368c5

Please sign in to comment.