Skip to content

ci(NODE-6185): Add test and lint tasks to CI #9

ci(NODE-6185): Add test and lint tasks to CI

ci(NODE-6185): Add test and lint tasks to CI #9

Workflow file for this run

name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Node ${{ matrix.node-version }}
runs-on: ${{matrix.platform}}
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
platform: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: "Build libmongocrypt"
shell: bash
run: |
node .github/scripts/libmongocrypt.mjs
npm install
npm run prebuild
- run: npm test