Version Packages #176
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: Test | |
on: | |
pull_request: | |
branches: | |
- "v[0-9]+" | |
jobs: | |
test: | |
runs-on: ${{ matrix.platform }} | |
name: ${{ matrix.platform }} test node@${{ matrix.node-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-latest, windows-latest] | |
node-version: ["14", "16", "18"] | |
steps: | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.63 | |
- uses: actions/checkout@v3 | |
- run: yarn install | |
- run: yarn build | |
# specifically running this after build | |
# using the n-api, the default node on github actions | |
# should build a .node that works in any of the node | |
# versions that we have specified in the matrix | |
- uses: volta-cli/action@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
yarn-version: 1.22.19 | |
- run: yarn test |