Skip to content

Commit 48aed67

Browse files
committedMay 2, 2023
Revert "test: try removing mongodb memory server to try to fix deno tests"
This reverts commit 6b0f963.
1 parent 5f587f7 commit 48aed67

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed
 

‎.github/workflows/test.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,21 @@ jobs:
7878
test-deno:
7979
runs-on: ubuntu-20.04
8080
name: Deno tests
81+
env:
82+
MONGOMS_VERSION: 6.0.0
83+
MONGOMS_PREFER_GLOBAL_PATH: 1
8184
steps:
8285
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
8386
- name: Setup node
8487
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
8588
with:
8689
node-version: 16
87-
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.0.2
88-
- name: Setup
89-
run: |
90-
wget -q https://downloads.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-6.0.0.tgz
91-
tar xf mongodb-linux-x86_64-ubuntu2004-6.0.0.tgz
92-
mkdir -p ./data/db/27017 ./data/db/27000
93-
printf "\ntimeout: 8000" >> ./.mocharc.yml
94-
./mongodb-linux-x86_64-ubuntu2004-6.0.0/bin/mongod --setParameter ttlMonitorSleepSecs=1 --fork --dbpath ./data/db/27017 --syslog --port 27017
95-
sleep 2
96-
mongod --version
97-
echo `pwd`/mongodb-linux-x86_64-ubuntu2004-6.0.0/bin >> $GITHUB_PATH
90+
- name: Load MongoDB binary cache
91+
id: cache-mongodb-binaries
92+
uses: actions/cache@v3
93+
with:
94+
path: ~/.cache/mongodb-binaries
95+
key: deno-${{ env.MONGOMS_VERSION }}
9896
- name: Setup Deno
9997
uses: denoland/setup-deno@v1
10098
with:

0 commit comments

Comments
 (0)
Please sign in to comment.