From 5ab73c8fa3d0b120ceb88840e852cd6713edd94d Mon Sep 17 00:00:00 2001 From: ThomasCode92 Date: Wed, 6 Mar 2024 21:32:31 +0100 Subject: [PATCH] Continuous Integration: Test Pipeline --- .github/workflows/node.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/node.yaml b/.github/workflows/node.yaml index da66221..1620eed 100644 --- a/.github/workflows/node.yaml +++ b/.github/workflows/node.yaml @@ -10,12 +10,20 @@ on: - main jobs: build: + env: + CI: true + MONGO_TEST_URL: ${{ secrets.MONGO_TEST_URL }} + strategy: + matrix: + os: [ubuntu-latest] + node-version: [18.x, 20.x] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Use Node.js version 16 - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - name: Use Node.js version ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: ${{ matrix.node-version }} - run: npm install - run: npm run build --prefix client + - run: npm rest