Skip to content

Merge pull request #43 from mongodb-js/MONGOSH-1536-avoid-linking-com… #251

Merge pull request #43 from mongodb-js/MONGOSH-1536-avoid-linking-com…

Merge pull request #43 from mongodb-js/MONGOSH-1536-avoid-linking-com… #251

Workflow file for this run

on: [push, pull_request]
name: CI
defaults:
run:
shell: bash
jobs:
test-posix:
name: Unix tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node-version: [14.x, 16.x, 18.x, 19.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
check-latest: true
node-version: ${{ matrix.node-version }}
- name: Install [email protected]
if: ${{ matrix.node-version == '14.x' }}
run: npm install -g [email protected]
- name: Install Dependencies
run: npm install
- name: Test
run: npm test
test-windows:
name: Windows tests
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x, 19.x]
shard: [1, 2, 3, 4, 5]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Node.js build deps
run: choco install nasm
- name: Install developer command prompt
uses: ilammy/msvc-dev-cmd@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
check-latest: true
node-version: ${{ matrix.node-version }}
- name: Install [email protected]
if: ${{ matrix.node-version == '14.x' }}
run: npm install -g [email protected]
- name: Install Dependencies
run: npm install
- name: Sharded tests
run: npm test -- -g "shard ${{ matrix.shard }}"
- name: Unsharded tests
run: npm test -- -g "shard [1-5]" -i