From cc1b81be921491ba95e712a80ba6af9571ef6027 Mon Sep 17 00:00:00 2001 From: Chris Galvan Date: Wed, 4 Sep 2024 16:08:51 -0500 Subject: [PATCH] Updated build action to use a node version matrix --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2528b5c..c6cbea9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,12 +16,18 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: ["18.x", "20.x", "22.x"] + steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: - node-version: "18.x" + node-version: ${{ matrix.node-version }} + cache: "npm" + cache-dependency-path: "./package-lock.json" - name: Install dependencies run: npm ci - name: Lint