From 81796634ef027ef138a41c3dbde0a84b123c123e Mon Sep 17 00:00:00 2001 From: sazzadtomal Date: Thu, 4 Jan 2024 19:06:15 +0600 Subject: [PATCH] added test database for action --- .github/workflows/node.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index de3aca0..ccbe0c6 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -8,16 +8,21 @@ jobs: build: env: CI: true + MONGO_URL: mongodb://localhost/nasa strategy: matrix: node-version: [14.x,16.x] + mongodb-version: ['4.4'] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: use Node.js version16 ${{matrix.node-version}} uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node-version}} + node-version: ${{ matrix.node-version}} + - name: use mongoDb from github actions + uses: supercharge/mongodb-github-action@1.6.0 + with: ${{matrix.mongodb-version}} - run: npm install - run: npm run build --prefix client - run: npm test \ No newline at end of file