Updated dependencies (nan, eslint, mocha) (#41) #115
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: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
virtual-environment: ['ubuntu-latest', 'windows-2019'] | |
node: [12, 14, 16, 18, 20, 22] | |
include: | |
- virtual-environment: 'macos-latest' | |
node: 18 | |
- virtual-environment: 'macos-latest' | |
node: 20 | |
- virtual-environment: 'macos-latest' | |
node: 22 | |
runs-on: ${{ matrix.virtual-environment }} | |
steps: | |
- name: Configure git (Windows specific) | |
if: matrix.virtual-environment == 'windows-2019' | |
run: git config --global core.autocrlf false | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies and build | |
run: npm install | |
- name: Run linter | |
run: node node_modules/eslint/bin/eslint . | |
- name: Run test suite | |
run: node node_modules/mocha/bin/mocha tests |