This repository has been archived by the owner on Jan 20, 2025. It is now read-only.
Add or update CodeQL workflow #106
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
on: [push, pull_request] | |
name: CI | |
jobs: | |
test: | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
node-version: [12.x, 14.x, 16.x, 18.x] | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm install | |
- name: Fixup bson dependency for Node.js 12 | |
run: if node -e 'process.exitCode = 1 - process.version.startsWith("v12")'; then npm install bson@4; fi | |
shell: bash | |
- name: Test | |
run: npm test |