Skip to content

Commit

Permalink
added mongodb to CI environemnt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertArakelyan committed Oct 8, 2023
1 parent ebdcb94 commit 5493579
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ jobs:
build:
env:
CI: true #for disabling watch mode in tests
MONGO_URL: mongodb://localhost/nasa
strategy:
matrix:
node-version: [18.x, 20.x]
mongodb-version: ['4.4']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js version ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Use MongoDB from GitHub actions
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: npm install
- run: npm run build --prefix client
- run: npm test

0 comments on commit 5493579

Please sign in to comment.