Skip to content

chore: writes compiled mongosh to lib-boxednode instead of lib to avoid linking it twice when building node #223

chore: writes compiled mongosh to lib-boxednode instead of lib to avoid linking it twice when building node

chore: writes compiled mongosh to lib-boxednode instead of lib to avoid linking it twice when building node #223

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 npm@8.x
if: ${{ matrix.node-version == '14.x' }}
run: npm install -g npm@8.x
- 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 npm@8.x
if: ${{ matrix.node-version == '14.x' }}
run: npm install -g npm@8.x
- 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