File tree Expand file tree Collapse file tree 7 files changed +543
-880
lines changed
actions/build_documentation Expand file tree Collapse file tree 7 files changed +543
-880
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ pushd mongodb-client-encryption
1515node --version
1616npm --version
1717
18+ # https://github.com/nodejs/node-gyp#configuring-python-dependency
19+ . $DRIVERS_TOOLS /.evergreen/find-python3.sh
20+ NODE_GYP_FORCE_PYTHON=$( find_python3)
21+ export NODE_GYP_FORCE_PYTHON
22+
23+ echo " NODE_GYP_FORCE_PYTHON: $NODE_GYP_FORCE_PYTHON "
24+
1825if [ -n " ${LIBMONGOCRYPT_VERSION} " ]; then
1926 # nightly tests test with `latest` to test against the laster FLE build.
2027 npm run install:libmongocrypt -- --build --libVersion $LIBMONGOCRYPT_VERSION
Original file line number Diff line number Diff line change 1+ name : ' Build Documentation'
2+ description : ' Build documentation files'
3+ runs :
4+ using : ' composite'
5+ steps :
6+ - name : Install Hugo
7+ shell : bash
8+ run : |
9+ mkdir hugo
10+ curl -L https://github.com/gohugoio/hugo/releases/download/v0.150.0/hugo_0.150.0_linux-amd64.tar.gz | tar -xzf - -C hugo
11+ echo "$(pwd)/hugo" >> $GITHUB_PATH
12+
13+ - name : Install Node and dependencies
14+ uses : mongodb-labs/drivers-github-tools/node/setup@v2
15+
16+ - name : Build Docs
17+ run : npm run build:docs -- --yes
18+ shell : bash
Original file line number Diff line number Diff line change 55
66name : Build and commit documentation
77
8+ permissions :
9+ contents : write
10+ pull-requests : write
11+
812jobs :
913 build-docs :
1014 # prevent subsequent commits from triggering the job multiple times
1115 concurrency :
1216 group : ci-${{ github.ref }}
1317 cancel-in-progress : true
14- name : " Build documentation."
15- uses : ./.github/workflows/build.yml
1618
17- commit-docs :
18- needs : [build-docs]
19- permissions :
20- contents : write
21- pull-requests : write
22- runs-on : ubuntu-latest
19+ runs-on : ' ubuntu-latest'
20+
2321 steps :
24- - name : Open Pull Request
25- uses : peter-evans/create-pull-request@v6
26- with :
27- title : ' docs: generate docs from latest main [skip-ci]'
28- delete-branch : true
22+ - uses : actions/checkout@v5
23+
24+ - name : " Build documentation"
25+ uses : ./.github/actions/build_documentation
26+
27+ - name : Open Pull Request
28+ uses : peter-evans/create-pull-request@v6
29+ with :
30+ title : ' docs: generate docs from latest main [skip-ci]'
31+ delete-branch : true
Original file line number Diff line number Diff line change 1515
1616 steps :
1717 - uses : actions/checkout@v5
18-
19- - name : Install Hugo
20- run : |
21- mkdir hugo
22- curl -L https://github.com/gohugoio/hugo/releases/download/v0.150.0/hugo_0.150.0_linux-amd64.tar.gz | tar -xzf - -C hugo
23- echo "$(pwd)/hugo" >> $GITHUB_PATH
24-
25- - name : Install Node and dependencies
26- uses : mongodb-labs/drivers-github-tools/node/setup@v2
27-
28- - name : Build Docs
29- run : npm run build:docs -- --yes
30-
18+ - uses : ./.github/actions/build_documentation
Original file line number Diff line number Diff line change 1+ import { once } from 'node:events' ;
2+
13import { expect } from 'chai' ;
2- import { once } from 'events' ;
34
45import {
56 type CommandStartedEvent ,
67 type Db ,
78 GridFSBucket ,
89 type MongoClient ,
910 ObjectId
10- } from '../../mongodb ' ;
11+ } from '../../../src ' ;
1112import { sleep } from '../../tools/utils' ;
1213
1314describe ( 'GridFS' , ( ) => {
You can’t perform that action at this time.
0 commit comments