Fix tests on macos-13 (#27) #35
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: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-2019, macos-latest, macos-13] | |
node-version: [10, 18] | |
exclude: | |
- os: macos-13 | |
node-version: 10 | |
name: ${{ matrix.os }} (v${{ matrix.node-version }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Update node-gyp | |
if: matrix.os == 'macos-13' | |
run: npm install -g node-gyp | |
- name: Install npm dependencies | |
run: npm ci --ignore-scripts | |
- name: Build artifact | |
run: npm run build | |
- name: Run tests | |
run: npm run test |