|
7 | 7 | pull_request: |
8 | 8 | workflow_dispatch: |
9 | 9 |
|
| 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 | + |
10 | 16 | jobs: |
11 | 17 | basics: |
12 | 18 | strategy: |
|
19 | 25 | - mongodb_versions: [ '4.2.5', '6.0' ] |
20 | 26 | topology: |
21 | 27 | 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 }} |
24 | 30 |
|
25 | 31 |
|
26 | 32 | # versions are: source, destination |
@@ -49,19 +55,19 @@ jobs: |
49 | 55 |
|
50 | 56 | topology: |
51 | 57 | - 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 }} |
54 | 60 |
|
55 | 61 | - name: replset-to-sharded |
56 | 62 | 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 }} |
59 | 65 |
|
60 | 66 | - name: sharded |
61 | 67 | srcArgs: --sharded 2 |
62 | 68 | 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 }} |
65 | 71 |
|
66 | 72 | # Ubuntu 24 lacks OpenSSL 1.1.1’s libcrypto, which pre-v6 MongoDB |
67 | 73 | # versions need. |
|
0 commit comments