Skip to content

Commit 5836726

Browse files
authored
test: MongoMS cache directory (#37893)
1 parent 9e03ed5 commit 5836726

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/actions/setup-node/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ runs:
6969
with:
7070
deno-version: ${{ inputs.deno-version }}
7171

72+
- name: Configure mongodb-memory-server cache
73+
shell: bash
74+
run: |
75+
CACHE_DIR="${GITHUB_WORKSPACE}/node_modules/.cache/mongodb-memory-server"
76+
mkdir -p "$CACHE_DIR"
77+
echo "MONGOMS_DOWNLOAD_DIR=$CACHE_DIR" >> $GITHUB_ENV
78+
echo "MONGOMS_PREFER_GLOBAL_PATH=false" >> $GITHUB_ENV
79+
7280
- name: yarn login
7381
shell: bash
7482
if: inputs.NPM_TOKEN

ee/packages/abac/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
"testunit": "jest",
1818
"typecheck": "tsc --noEmit --skipLibCheck"
1919
},
20+
"config": {
21+
"mongodbMemoryServer": {
22+
"downloadDir": "../../../node_modules/.cache/mongodb-memory-server",
23+
"preferGlobalPath": false
24+
}
25+
},
2026
"volta": {
2127
"extends": "../../../package.json"
2228
},

0 commit comments

Comments
 (0)