Skip to content

Commit 02aa328

Browse files
committed
chore: use ubuntu 22 and 24 in tests
1 parent 0aa9983 commit 02aa328

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919

2020
jobs:
2121
typescript:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-22.04
2323
name: Benchmark TypeScript Types
2424
steps:
2525
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/documentation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ jobs:
5959
- run: npm install
6060
- name: Setup MongoDB
6161
run: |
62-
wget -q https://downloads.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-5.0.14.tgz
63-
tar xf mongodb-linux-x86_64-ubuntu2004-5.0.14.tgz
62+
wget -q https://downloads.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.20.tgz
63+
tar xf mongodb-linux-x86_64-ubuntu2204-6.0.20.tgz
6464
mkdir -p ./data/db/27017 ./data/db/27000
6565
printf "\n--timeout 8000" >> ./test/mocha.opts
66-
./mongodb-linux-x86_64-ubuntu2004-5.0.14/bin/mongod --setParameter ttlMonitorSleepSecs=1 --fork --dbpath ./data/db/27017 --syslog --port 27017
66+
./mongodb-linux-x86_64-ubuntu2204-6.0.20/bin/mongod --setParameter ttlMonitorSleepSecs=1 --fork --dbpath ./data/db/27017 --syslog --port 27017
6767
sleep 2
6868
mongod --version
69-
echo `pwd`/mongodb-linux-x86_64-ubuntu2004-5.0.14/bin >> $GITHUB_PATH
69+
echo `pwd`/mongodb-linux-x86_64-ubuntu2204-6.0.20/bin >> $GITHUB_PATH
7070
- name: Setup config
7171
run: |
7272
echo "module.exports = {uri:'mongodb://127.0.0.1:27017/mongoose_test'};" > ./.config.js

.github/workflows/test.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,13 @@ jobs:
4040
fail-fast: false
4141
matrix:
4242
node: [16, 18, 20, 22]
43-
os: [ubuntu-20.04, ubuntu-22.04]
44-
mongodb: [4.4.29, 5.0.26, 6.0.15, 7.0.12, 8.0.0]
43+
os: [ubuntu-22.04, ubuntu-24.04]
44+
mongodb: [6.0.15, 7.0.12, 8.0.0]
4545
include:
46-
- os: ubuntu-20.04 # customize on which matrix the coverage will be collected on
47-
mongodb: 5.0.26
48-
node: 16
46+
- os: ubuntu-22.04 # customize on which matrix the coverage will be collected on
47+
mongodb: 6.0.15
48+
node: 22
4949
coverage: true
50-
exclude:
51-
- os: ubuntu-22.04 # exclude because there are no 4.x mongodb builds for 2204
52-
mongodb: 4.4.29
53-
- os: ubuntu-22.04 # exclude because there are no 5.x mongodb builds for 2204
54-
mongodb: 5.0.26
5550
name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongodb }} OS ${{ matrix.os }}
5651
env:
5752
MONGOMS_VERSION: ${{ matrix.mongodb }}
@@ -87,7 +82,7 @@ jobs:
8782
path: coverage
8883

8984
test-deno:
90-
runs-on: ubuntu-20.04
85+
runs-on: ubuntu-22.04
9186
name: Deno tests
9287
env:
9388
MONGOMS_VERSION: 6.0.15
@@ -117,7 +112,7 @@ jobs:
117112
test-replica-sets:
118113
needs:
119114
- test
120-
runs-on: ubuntu-20.04
115+
runs-on: ubuntu-22.04
121116
name: Replica Set tests
122117
env:
123118
FORCE_COLOR: true

0 commit comments

Comments
 (0)