Skip to content

Commit 7c12fc6

Browse files
committed
update readme
1 parent ad73029 commit 7c12fc6

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
## Introduction
2828
This GitHub Action starts a MongoDB server or MongoDB replica set. By default, the MongoDB server is available on the default port `27017`. You can configure a custom port using the `mongodb-port` input. The examples show how to use a custom port.
2929

30-
The MongoDB version must be specified using the `mongodb-version` input. The used version must exist in the published [`mongo` Docker hub tags](https://hub.docker.com/_/mongo?tab=tags). Default value is `latest`, other popular choices are `4.2`, `4.4`, `5.0` or `6.0`.
30+
The MongoDB version must be specified using the `mongodb-version` input. The used version must exist in the published [`mongo` Docker hub tags](https://hub.docker.com/_/mongo?tab=tags). Default value is `latest`, other popular choices are `6.0`, `7.0` or even release candidates `8.0.0-rc4`.
3131

3232
This is useful when running tests against a MongoDB database.
3333

3434

3535
## Usage
36-
A code example says more than a 1000 words. Here’s an exemplary GitHub Action using a MongoDB server in versions `4.2` and `4.4` to test a Node.js app:
36+
A code example says more than a 1000 words. Here’s an exemplary GitHub Action using a MongoDB server in different versions to test a Node.js app:
3737

3838
```yaml
3939
name: Run tests
@@ -45,8 +45,8 @@ jobs:
4545
runs-on: ubuntu-latest
4646
strategy:
4747
matrix:
48-
node-version: [18.x, 20.x]
49-
mongodb-version: ['4.2', '4.4', '5.0', '6.0']
48+
node-version: [20.x, 22.x]
49+
mongodb-version: ['6.0', '7.0', '8.0']
5050

5151
steps:
5252
- name: Git checkout
@@ -58,7 +58,7 @@ jobs:
5858
node-version: ${{ matrix.node-version }}
5959

6060
- name: Start MongoDB
61-
uses: supercharge/mongodb-github-action@1.10.0
61+
uses: supercharge/mongodb-github-action@1.11.0
6262
with:
6363
mongodb-version: ${{ matrix.mongodb-version }}
6464

@@ -85,8 +85,8 @@ jobs:
8585
runs-on: ubuntu-latest
8686
strategy:
8787
matrix:
88-
node-version: [18.x, 20.x]
89-
mongodb-version: ['4.2', '4.4', '5.0', '6.0']
88+
node-version: [20.x, 22.x]
89+
mongodb-version: ['6.0', '7.0', '8.0']
9090
9191
steps:
9292
- name: Git checkout
@@ -98,7 +98,7 @@ jobs:
9898
node-version: ${{ matrix.node-version }}
9999
100100
- name: Start MongoDB
101-
uses: supercharge/mongodb-github-action@1.10.0
101+
uses: supercharge/mongodb-github-action@1.11.0
102102
with:
103103
mongodb-version: ${{ matrix.mongodb-version }}
104104
mongodb-replica-set: test-rs
@@ -129,8 +129,8 @@ jobs:
129129
runs-on: ubuntu-latest
130130
strategy:
131131
matrix:
132-
node-version: [18.x, 20.x]
133-
mongodb-version: ['4.2', '4.4', '5.0', '6.0']
132+
node-version: [20.x, 22.x]
133+
mongodb-version: ['6.0', '7.0', '8.0']
134134
135135
steps:
136136
- name: Git checkout
@@ -142,7 +142,7 @@ jobs:
142142
node-version: ${{ matrix.node-version }}
143143
144144
- name: Start MongoDB
145-
uses: supercharge/mongodb-github-action@1.10.0
145+
uses: supercharge/mongodb-github-action@1.11.0
146146
with:
147147
mongodb-version: ${{ matrix.mongodb-version }}
148148
mongodb-replica-set: test-rs
@@ -173,8 +173,8 @@ jobs:
173173
runs-on: ubuntu-latest
174174
strategy:
175175
matrix:
176-
node-version: [18.x, 20.x]
177-
mongodb-version: ['4.2', '4.4', '5.0', '6.0']
176+
node-version: [20.x, 22.x]
177+
mongodb-version: ['6.0', '7.0', '8.0']
178178
179179
steps:
180180
- name: Git checkout
@@ -186,7 +186,7 @@ jobs:
186186
node-version: ${{ matrix.node-version }}
187187
188188
- name: Start MongoDB
189-
uses: supercharge/mongodb-github-action@1.10.0
189+
uses: supercharge/mongodb-github-action@1.11.0
190190
with:
191191
mongodb-version: ${{ matrix.mongodb-version }}
192192
mongodb-username: supercharge
@@ -217,8 +217,8 @@ jobs:
217217
runs-on: ubuntu-latest
218218
strategy:
219219
matrix:
220-
node-version: [18.x, 20.x]
221-
mongodb-version: ['4.2', '4.4', '5.0', '6.0']
220+
node-version: [20.x, 22.x]
221+
mongodb-version: ['6.0', '7.0', '8.0']
222222
223223
steps:
224224
- name: Git checkout
@@ -230,7 +230,7 @@ jobs:
230230
node-version: ${{ matrix.node-version }}
231231
232232
- name: Start MongoDB
233-
uses: supercharge/mongodb-github-action@1.10.0
233+
uses: supercharge/mongodb-github-action@1.11.0
234234
with:
235235
mongodb-version: ${{ matrix.mongodb-version }}
236236
mongodb-container-name: mongodb-${{ matrix.node-version }}-${{ matrix.mongodb-version }}

0 commit comments

Comments
 (0)