Skip to content

Commit 955cedf

Browse files
remove extra gha call - use local script instead
lint typo lint
1 parent 1098636 commit 955cedf

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

.github/workflows/encryption-tests.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,5 @@ jobs:
3333
run: npm install
3434
- name: Install mongodb-client-encryption
3535
run: npm install mongodb-client-encryption
36-
- name: Set up cluster
37-
id: setup-cluster
38-
uses: mongodb-labs/drivers-evergreen-tools@master
39-
with:
40-
version: 8.0.0
41-
topology: sharded_cluster
42-
auth: auth
4336
- name: Run Tests
4437
run: npm run test-encryption
45-
env:
46-
MONGOOSE_TEST_URI: ${{ steps.setup-cluster.outputs.cluster-uri }}
47-
CRYPT_SHARED_LIB_PATH: ${{ steps.setup-cluster.outputs.crypt-shared-lib-path }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ notes.md
6969
list.out
7070

7171
data
72-
*.pid
72+
*.pid

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ If you have a question about Mongoose (not a bug report) please post it to eithe
4646
* execute `npm run test-tsd` to run the typescript tests
4747
* execute `npm run ts-benchmark` to run the typescript benchmark "performance test" for a single time.
4848
* 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.
49-
* 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.
49+
* 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.
5050

5151
## Documentation
5252

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@
104104
"test-deno": "deno run --allow-env --allow-read --allow-net --allow-run --allow-sys --allow-write ./test/deno.js",
105105
"test-rs": "START_REPLICA_SET=1 mocha --timeout 30000 --exit ./test/*.test.js",
106106
"test-tsd": "node ./test/types/check-types-filename && tsd",
107-
"test-encryption": "mocha --exit ./test/encryption/*.test.js",
108-
"test-encryption-local": "bash scripts/run-encryption-tests-local.sh",
107+
"test-encryption": "bash scripts/run-encryption-tests.sh",
109108
"tdd": "mocha ./test/*.test.js --inspect --watch --recursive --watch-files ./**/*.{js,ts}",
110109
"test-coverage": "nyc --reporter=html --reporter=text npm test",
111110
"ts-benchmark": "cd ./benchmarks/typescript/simple && npm install && npm run benchmark | node ../../../scripts/tsc-diagnostics-check"

scripts/run-encryption-tests-local.sh renamed to scripts/run-encryption-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ source expansions.sh
3535
export MONGOOSE_TEST_URI=$MONGODB_URI
3636

3737
# run encryption tests
38-
npm run test-encryption
38+
cd ..
39+
npx mocha --exit ./test/encryption/*.test.js

0 commit comments

Comments
 (0)