Added MacOS 12 as a runner for Mac x64 builds. #320
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: Node.js CI | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
branches: [master] | |
jobs: | |
tests: | |
name: Node.js ${{matrix.node-version}} on ${{matrix.os}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
node-version: [18, 20, 21, 22] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup Node.js ${{matrix.node-version}} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{matrix.node-version}} | |
- name: Install the package and run tests | |
env: | |
DEVELOPMENT_SKIP_GETTING_ASSET: true | |
run: | | |
npm i | |
npm run build --if-present | |
npm test && npm run ts-test |