From 57906e9079c90953ecc758ec4ecd864c1eb1b8ad Mon Sep 17 00:00:00 2001 From: Kevin Mark Montesclaros Date: Sat, 30 Dec 2023 17:45:34 +0800 Subject: [PATCH] 250. Continuous Integration: Test Pipeline - 11min --- .github/workflows/node.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 502a58c..82eab35 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -6,12 +6,18 @@ on: branches: [ main ] jobs: build: + env: + CI: true + strategy: + matrix: + node-version: [14.x, 16.x, 20.x] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Use Node.js version 20 + - name: Use Node.js version ${{ matrix.node-version }} uses: actions/setup-node@v3 with: - node-version: '20' + node-version: ${{ matrix.node-version }} - run: npm install - - run: npm run build --prefix client \ No newline at end of file + - run: npm run build --prefix client + - run: npm test \ No newline at end of file