forked from Automattic/mongoose
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.24 KB
/
encryption-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Encryption Tests
on:
push:
branches: ['master', 'NODE-6505/ci-setup']
workflow_dispatch: {}
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
run-tests:
permissions:
# required for all workflows
security-events: write
id-token: write
contents: write
runs-on: ubuntu-latest
name: Encryption tests
env:
FORCE_COLOR: true
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: latest
- name: Install Dependencies
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 encryption-test
env:
MONGOOSE_TEST_URI: ${{ steps.setup-cluster.outputs.cluster-uri }}
CRYPT_SHARED_LIB_PATH: ${{ steps.setup-cluster.outputs.crypt-shared-lib-path }}