Skip to content

Commit

Permalink
Add database service to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Shin-Thant committed Feb 20, 2024
1 parent 270e0da commit b166432
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,18 @@ on:
jobs:
test:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
env:
MONGODB_URI: mongodb://localhost:27017/Twitter

0 comments on commit b166432

Please sign in to comment.