Skip to content

Commit

Permalink
ci: use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoyang committed Nov 13, 2023
1 parent 0d05efa commit 0b67dcc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v2
- name: Use Node.js
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
Expand Down

0 comments on commit 0b67dcc

Please sign in to comment.