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