Skip to content

Commit 7d265b7

Browse files
authored
Merge pull request #129 from mongoKart/docsp-24483
Add workflow action / update compatibility.txt
2 parents 801ab2e + 8d724fe commit 7d265b7

File tree

4 files changed

+188
-2
lines changed

4 files changed

+188
-2
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Copy Files to docs-shared
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
paths:
8+
- "source/includes/mongodb-compatibility-table-go.rst"
9+
- "source/includes/language-compatibility-table-go.rst"
10+
11+
jobs:
12+
copy-file:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Copy mongodb-compat table
19+
uses: dmnemec/copy_file_to_another_repo_action@main
20+
env:
21+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
22+
with:
23+
source_file: "source/includes/mongodb-compatibility-table-go.rst"
24+
destination_repo: "10gen/docs-shared"
25+
destination_folder: "dbx"
26+
user_email: "[email protected]"
27+
user_name: "mongoKart"
28+
commit_message: "Auto-import from docs-go"
29+
30+
- name: Copy language-compat table
31+
uses: dmnemec/copy_file_to_another_repo_action@main
32+
env:
33+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
34+
with:
35+
source_file: "source/includes/language-compatibility-table-go.rst"
36+
destination_repo: "10gen/docs-shared"
37+
destination_folder: "dbx"
38+
user_email: "[email protected]"
39+
user_name: "mongoKart"
40+
commit_message: "Auto-import from docs-go"

source/compatibility.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ The following compatibility table specifies the recommended version(s) of the
1111

1212
The first column lists the driver version(s).
1313

14-
.. sharedinclude:: dbx/mongodb-compatibility-table-go.rst
14+
.. sharedinclude:: dbx/compatibility-table-legend.rst
15+
16+
.. include:: /includes/mongodb-compatibility-table-go.rst
1517

1618
Language Compatibility
1719
~~~~~~~~~~~~~~~~~~~~~~
1820

19-
.. sharedinclude:: dbx/language-compatibility-table-go.rst
21+
.. include:: /includes/language-compatibility-table-go.rst
22+
23+
For more information on how to read the compatibility tables, see our guide on
24+
:ref:`MongoDB Compatibility Tables. <about-driver-compatibility>`
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The MongoDB Go Driver requires Go 1.10 or later.
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
.. list-table::
2+
:header-rows: 1
3+
:stub-columns: 1
4+
:class: compatibility-large
5+
6+
* - Go Driver Version
7+
- MongoDB 6.0
8+
- MongoDB 5.0
9+
- MongoDB 4.4
10+
- MongoDB 4.2
11+
- MongoDB 4.0
12+
- MongoDB 3.6
13+
- MongoDB 3.4
14+
- MongoDB 3.2
15+
- MongoDB 3.0
16+
- MongoDB 2.6
17+
* - 1.10
18+
- ✓
19+
- ✓
20+
- ✓
21+
- ✓
22+
- ✓
23+
- ✓
24+
- ✓
25+
- ✓
26+
- ✓
27+
- ✓
28+
* - 1.9
29+
- ⊛
30+
- ✓
31+
- ✓
32+
- ✓
33+
- ✓
34+
- ✓
35+
- ✓
36+
- ✓
37+
- ✓
38+
- ✓
39+
* - 1.8
40+
- ⊛
41+
- ✓
42+
- ✓
43+
- ✓
44+
- ✓
45+
- ✓
46+
- ✓
47+
- ✓
48+
- ✓
49+
- ✓
50+
* - 1.7
51+
- ⊛
52+
- ✓
53+
- ✓
54+
- ✓
55+
- ✓
56+
- ✓
57+
- ✓
58+
- ✓
59+
- ✓
60+
- ✓
61+
* - 1.6
62+
- ⊛
63+
- ✓ [#go-1.6-driver-support]_
64+
- ✓
65+
- ✓
66+
- ✓
67+
- ✓
68+
- ✓
69+
- ✓
70+
- ✓
71+
- ✓
72+
* - 1.5
73+
- ⊛
74+
- ⊛
75+
- ✓
76+
- ✓
77+
- ✓
78+
- ✓
79+
- ✓
80+
- ✓
81+
- ✓
82+
- ✓
83+
* - 1.4
84+
- ⊛
85+
- ⊛
86+
- ✓
87+
- ✓
88+
- ✓
89+
- ✓
90+
- ✓
91+
- ✓
92+
- ✓
93+
- ✓
94+
* - 1.3
95+
- ⊛
96+
- ⊛
97+
- ⊛
98+
- ✓
99+
- ✓
100+
- ✓
101+
- ✓
102+
- ✓
103+
- ✓
104+
- ✓
105+
* - 1.2
106+
- ⊛
107+
- ⊛
108+
- ⊛
109+
- ✓
110+
- ✓
111+
- ✓
112+
- ✓
113+
- ✓
114+
- ✓
115+
- ✓
116+
* - 1.1
117+
- ⊛
118+
- ⊛
119+
- ⊛
120+
- ✓
121+
- ✓
122+
- ✓
123+
- ✓
124+
- ✓
125+
- ✓
126+
- ✓
127+
* - 1.0
128+
- ⊛
129+
- ⊛
130+
- ⊛
131+
- ⊛
132+
- ✓
133+
- ✓
134+
- ✓
135+
- ✓
136+
- ✓
137+
- ✓
138+
139+
.. [#go-1.6-driver-support] The 1.6 driver does not support snapshot reads on secondaries. For more
140+
information, see the `MongoDB Server version 5.0 release notes <https://www.mongodb.com/docs/v5.0/release-notes/5.0/#snapshots>`__.

0 commit comments

Comments
 (0)