Skip to content

Commit

Permalink
Test in all supported Node.js versions
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkel committed Oct 17, 2023
1 parent 6865d6d commit 16b4acf
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,33 @@ on:
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16, 18]

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_ADMIN_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
always-auth: true
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Unit tests
run: yarn test

release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -33,9 +60,6 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Unit tests
run: yarn test

- name: Build
run: yarn build

Expand Down

0 comments on commit 16b4acf

Please sign in to comment.