Skip to content

Commit b4ac2fa

Browse files
committed
try env
1 parent ae3dab2 commit b4ac2fa

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/all.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
pull_request:
88
workflow_dispatch:
99

10+
env:
11+
_GHA_SRC_RS_CONNSTR: mongodb://localhost:27020,localhost:27021,localhost:27022
12+
_GHA_DST_RS_CONNSTR: mongodb://localhost:27030,localhost:27031,localhost:27032
13+
_GHA_SRC_SC_CONNSTR: mongodb://localhost:27020
14+
_GHA_DST_SC_CONNSTR: mongodb://localhost:27030
15+
1016
jobs:
1117
basics:
1218
strategy:
@@ -19,8 +25,8 @@ jobs:
1925
- mongodb_versions: [ '4.2.5', '6.0' ]
2026
topology:
2127
name: replset
22-
srcConnStr: mongodb://localhost:27020,localhost:27021,localhost:27022
23-
dstConnStr: mongodb://localhost:27030,localhost:27031,localhost:27032
28+
srcConnStr: ${{ env._GHA_SRC_RS_CONNSTR }}
29+
dstConnStr: ${{ env._GHA_DST_RS_CONNSTR }}
2430

2531

2632
# versions are: source, destination
@@ -49,19 +55,19 @@ jobs:
4955

5056
topology:
5157
- name: replset
52-
srcConnStr: mongodb://localhost:27020,localhost:27021,localhost:27022
53-
dstConnStr: mongodb://localhost:27030,localhost:27031,localhost:27032
58+
srcConnStr: ${{ env._GHA_SRC_RS_CONNSTR }}
59+
dstConnStr: ${{ env._GHA_DST_RS_CONNSTR }}
5460

5561
- name: replset-to-sharded
5662
dstArgs: --sharded 2
57-
srcConnStr: mongodb://localhost:27020,localhost:27021,localhost:27022
58-
dstConnStr: mongodb://localhost:27030
63+
srcConnStr: ${{ env._GHA_SRC_RS_CONNSTR }}
64+
dstConnStr: ${{ env._GHA_DST_SC_CONNSTR }}
5965

6066
- name: sharded
6167
srcArgs: --sharded 2
6268
dstArgs: --sharded 2
63-
srcConnStr: mongodb://localhost:27020
64-
dstConnStr: mongodb://localhost:27030
69+
srcConnStr: ${{ env._GHA_SRC_SC_CONNSTR }}
70+
dstConnStr: ${{ env._GHA_DST_SC_CONNSTR }}
6571

6672
# Ubuntu 24 lacks OpenSSL 1.1.1’s libcrypto, which pre-v6 MongoDB
6773
# versions need.

0 commit comments

Comments
 (0)