|
11 | 11 | workflow_dispatch: |
12 | 12 | inputs: |
13 | 13 | spawnDataImages: |
14 | | - description: 'names of the data-images on spawn (e.g. ["mssql","empty-mssql"]) aka 2017 and 2019' |
| 14 | + description: 'names of the data-images on spawn (e.g. all is currently equivalent to [["SQL2017","mssql-empty:v2017"],["SQL2019","mssql-empty:v2019"]] 2021-09-26)' |
15 | 15 | required: true |
16 | | - default: '["mssql-empty:2017","mssql-empty:2019"]' # If you change this, remember to also update env.SPAWNDATAIMAGES_DEFAULT |
| 16 | + default: 'all' |
17 | 17 |
|
18 | 18 | env: |
19 | | - SPAWNDATAIMAGES_DEFAULT: '["mssql-empty:v2017","mssql-empty:v2019"]' |
| 19 | + MATRIX_NAME: 0 |
| 20 | + MATRIX_SPAWNIMAGE: 1 |
| 21 | + SPAWNDATAIMAGES_DEFAULT: |
| 22 | + '[["SQL2017","mssql-empty:v2017"],["SQL2019","mssql-empty:v2019"]]' |
20 | 23 |
|
21 | 24 | jobs: |
22 | 25 | # 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 |
|
40 | 43 | Write-Host "✨ ✨ ✨ ✨ ✨ ✨ ✨ ✨ ✨ ✨ "; |
41 | 44 | Write-Host ""; |
42 | 45 | Write-Host ("input spawnDataImages: {0}" -f $spawnDataImages); |
43 | | - if ([string]::IsNullOrEmpty($spawnDataImages)) { |
| 46 | + if ([string]::IsNullOrEmpty($spawnDataImages) -or ("all" -eq $spawnDataImages)) { |
44 | 47 | $spawnDataImages = '${{ env.spawndataimages_default }}'; |
45 | 48 | } |
46 | 49 | Write-Host ("final spawnDataImages value: {0}" -f $spawnDataImages); |
@@ -151,7 +154,7 @@ jobs: |
151 | 154 | run: | |
152 | 155 | & "${{ github.workspace }}\spawnctl.exe" get data-images |
153 | 156 |
|
154 | | - $dataImageName = "${{ matrix.data-image }}"; |
| 157 | + $dataImageName = "${{ matrix.data-image[MATRIX_SPAWNIMAGE] }}"; |
155 | 158 |
|
156 | 159 | echo "Creating 'tSQLtOnLinux' Spawn data container from image '$dataImageName'"; |
157 | 160 | $containerName= & "${{ github.workspace }}\spawnctl.exe" create data-container --image $dataImageName --lifetime 30m -q |
@@ -318,7 +321,7 @@ jobs: |
318 | 321 | run: | |
319 | 322 | & "${{ github.workspace }}\spawnctl.exe" get data-images |
320 | 323 |
|
321 | | - $dataImageName = "${{ matrix.data-image }}"; |
| 324 | + $dataImageName = "${{ matrix.data-image[MATRIX_SPAWNIMAGE] }}"; |
322 | 325 |
|
323 | 326 | echo "Creating 'tSQLtOnLinux' Spawn data container from image '$dataImageName'"; |
324 | 327 | $containerName= & "${{ github.workspace }}\spawnctl.exe" create data-container --image $dataImageName --lifetime 30m -q |
@@ -368,7 +371,7 @@ jobs: |
368 | 371 | uses: actions/upload-artifact@v2 |
369 | 372 | with: |
370 | 373 | if-no-files-found: error |
371 | | - name: jUnitTests-${{ matrix.data-image }} |
| 374 | + name: jUnitTests-${{ matrix.data-image[MATRIX_NAME] }} |
372 | 375 | path: "${{ env.test_artifact_dir }}\\" |
373 | 376 | retention-days: 90 |
374 | 377 |
|
|
0 commit comments