Drop support for Node.js 14 and 16, require >= 18.17.0 #697
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: CI (MacStadium) | |
on: | |
- push | |
- pull_request | |
permissions: {} | |
jobs: | |
CI: | |
permissions: | |
contents: write # for npx prebuild to make release | |
name: Node.js ${{ matrix.nodejs_version }} ${{ matrix.platform }} ${{ matrix.prebuild && '- prebuild' }} | |
runs-on: macos-m1 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- nodejs_version: "^18.17.0" | |
nodejs_arch: x64 | |
platform: darwin-x64 | |
- nodejs_version: "^18.17.0" | |
nodejs_arch: arm64 | |
platform: darwin-arm64 | |
prebuild: true | |
defaults: | |
run: | |
shell: /usr/bin/arch -arch arm64e /bin/bash -l {0} | |
steps: | |
- name: Dependencies (Node.js) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.nodejs_version }} | |
architecture: ${{ matrix.nodejs_arch }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install | |
run: npm install --build-from-source | |
- name: Test | |
run: npm test | |
- name: Prebuild | |
if: matrix.prebuild && startsWith(github.ref, 'refs/tags/') | |
env: | |
prebuild_upload: ${{ secrets.GITHUB_TOKEN }} | |
run: npx prebuild --runtime napi --target 7 |