Skip to content

Commit

Permalink
gh-actions(ci): add mongo service
Browse files Browse the repository at this point in the history
  • Loading branch information
omermujtaba18 committed Aug 28, 2024
1 parent 7cb5204 commit 26f6598
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ jobs:

e2e:
runs-on: ubuntu-latest

services:
mongo:
image: mongo:6.0
env:
MONGO_INITDB_ROOT_USERNAME: docker
MONGO_INITDB_ROOT_PASSWORD: mongopw
MONGO_INITDB_DATABASE: nest-api-starter
ports:
- '27017:27017'

if: ${{ !startsWith(github.event.head_commit.message, 'docs') }}
needs: format # Ensures the format job completes before e2e job starts
steps:
Expand Down

0 comments on commit 26f6598

Please sign in to comment.