Skip to content

Commit 2b186c7

Browse files
authored
Add basic test for mongocompat snippet (#13)
1 parent 690b3d3 commit 2b186c7

File tree

13 files changed

+18570
-2
lines changed

13 files changed

+18570
-2
lines changed

.github/workflows/check-test.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read # we just need to checkout the repo
13+
14+
jobs:
15+
test:
16+
name: Test
17+
18+
timeout-minutes: 45
19+
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest]
23+
node: [20.x, 24.x]
24+
fail-fast: false
25+
26+
runs-on: ${{ matrix.os }}
27+
28+
steps:
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ matrix.node }}
33+
34+
- name: Checkout
35+
uses: actions/checkout@v5
36+
37+
- name: Install Dependencies
38+
run: |
39+
npm ci
40+
npx lerna bootstrap
41+
shell: bash
42+
43+
- name: Run Tests
44+
run: npm run test -- --stream
45+
shell: bash

.github/workflows/cron-tasks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-node@v2
1616
- name: Install Dependencies
17-
run: npm install
17+
run: npm ci
1818
- name: Set up Git
1919
run: |
2020
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ tmp/expansions.yaml
2222
tmp/
2323
dist.tgz
2424
mongocryptd.pid
25+
!package-lock.json

0 commit comments

Comments
 (0)