Skip to content

Commit

Permalink
remove extra gha call - use local script instead
Browse files Browse the repository at this point in the history
lint

typo

lint
  • Loading branch information
aditi-khare-mongoDB committed Dec 27, 2024
1 parent 1098636 commit 955cedf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/encryption-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,5 @@ jobs:
run: npm install
- name: Install mongodb-client-encryption
run: npm install mongodb-client-encryption
- name: Set up cluster
id: setup-cluster
uses: mongodb-labs/drivers-evergreen-tools@master
with:
version: 8.0.0
topology: sharded_cluster
auth: auth
- name: Run Tests
run: npm run test-encryption
env:
MONGOOSE_TEST_URI: ${{ steps.setup-cluster.outputs.cluster-uri }}
CRYPT_SHARED_LIB_PATH: ${{ steps.setup-cluster.outputs.crypt-shared-lib-path }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ notes.md
list.out

data
*.pid
*.pid
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If you have a question about Mongoose (not a bug report) please post it to eithe
* execute `npm run test-tsd` to run the typescript tests
* execute `npm run ts-benchmark` to run the typescript benchmark "performance test" for a single time.
* execute `npm run ts-benchmark-watch` to run the typescript benchmark "performance test" while watching changes on types folder. Note: Make sure to commit all changes before executing this command.
* in order to run tests that require an cluster with encryption locally, run `npm run test-encryption-local`. Alternatively, you can start an encrypted cluster using the `scripts/start-cluster-with-encryption.sh` file.
* in order to run tests that require an cluster with encryption locally, run `npm run test-encryption`. Alternatively, you can start an encrypted cluster using the `scripts/configure-cluster-with-encryption.sh` file.

## Documentation

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@
"test-deno": "deno run --allow-env --allow-read --allow-net --allow-run --allow-sys --allow-write ./test/deno.js",
"test-rs": "START_REPLICA_SET=1 mocha --timeout 30000 --exit ./test/*.test.js",
"test-tsd": "node ./test/types/check-types-filename && tsd",
"test-encryption": "mocha --exit ./test/encryption/*.test.js",
"test-encryption-local": "bash scripts/run-encryption-tests-local.sh",
"test-encryption": "bash scripts/run-encryption-tests.sh",
"tdd": "mocha ./test/*.test.js --inspect --watch --recursive --watch-files ./**/*.{js,ts}",
"test-coverage": "nyc --reporter=html --reporter=text npm test",
"ts-benchmark": "cd ./benchmarks/typescript/simple && npm install && npm run benchmark | node ../../../scripts/tsc-diagnostics-check"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ source expansions.sh
export MONGOOSE_TEST_URI=$MONGODB_URI

# run encryption tests
npm run test-encryption
cd ..
npx mocha --exit ./test/encryption/*.test.js

0 comments on commit 955cedf

Please sign in to comment.