Skip to content

Commit

Permalink
Updated build action to use a node version matrix (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgalvan authored Sep 4, 2024
1 parent 0fb2cd0 commit 350d713
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 350d713

Please sign in to comment.