From 9f1256a63bc8ff4da3cc7ede8ed194641e8aba76 Mon Sep 17 00:00:00 2001 From: Brendan Nee Date: Sun, 18 Feb 2024 22:31:53 -0800 Subject: [PATCH] Updates to github test --- .github/workflows/nodejs.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 7ccd955b..659f36e5 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -5,21 +5,17 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - strategy: matrix: - node-version: [18.x, 20.x] - + node: [ 18, 20 ] + name: Use Node.js ${{ matrix.node }} steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} - - name: npm install and test - run: | - npm install -g npm@9 - npm ci - npm test + node-version: ${{ matrix.node }} + - run: npm ci + - run: npm test env: CI: true