feat(node): upgrades to support Node 18, 20 #186
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request | |
on: | |
pull_request: | |
branches: | |
- master | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
strategy: | |
matrix: | |
os: [windows-2019, ubuntu-latest, macos-latest] | |
# list only the earliest and latest node versions supported | |
# this makes PR builds more efficient | |
node-version: [16, 20] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn | |
- name: Run linter | |
run: yarn lint | |
- name: Build binaries | |
run: yarn build | |
- name: Run tests | |
run: yarn test |