File tree Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -910,6 +910,14 @@ jobs:
910
910
needs :
911
911
- setup
912
912
- build-linux
913
+ strategy :
914
+ matrix :
915
+ image :
916
+ - debian:11
917
+ - debian:12
918
+ - ubuntu:20.04
919
+ - ubuntu:22.04
920
+ - ubuntu
913
921
runs-on : ubuntu-latest
914
922
steps :
915
923
@@ -918,21 +926,20 @@ jobs:
918
926
with :
919
927
name : cf-cli-linux-deb-packages
920
928
921
- - name : Display structure of downloaded files and test compression
929
+ - name : Display structure of downloaded files and test compression on ${{ matrix.image}}
930
+ env :
931
+ IMAGE : ${{ matrix.image }}
922
932
run : |
923
- ls -R
924
-
925
- for i in debian:11 debian:12 ubuntu:20.04 ubuntu:22.04 ubuntu; do docker run \
933
+ docker run \
926
934
--interactive \
927
935
--rm \
928
936
-v .:/workspace \
929
- ${i:? } <<EOC
930
- printf "${i:? } -> "
937
+ ${IMAGE } <<EOC
938
+ printf "${IMAGE } -> "
931
939
grep PRETTY_NAME /etc/os-release | cut -d= -f2-
932
940
cd workspace
933
941
ls *.deb | xargs -n1 dpkg --info
934
942
EOC
935
- done
936
943
937
944
test-macos :
938
945
name : Test macOS Artifacts
Original file line number Diff line number Diff line change @@ -305,6 +305,14 @@ jobs:
305
305
306
306
test-deb :
307
307
name : Test Debian Repository
308
+ strategy :
309
+ matrix :
310
+ image :
311
+ - debian:11
312
+ - debian:12
313
+ - ubuntu:20.04
314
+ - ubuntu:22.04
315
+ - ubuntu
308
316
runs-on : ubuntu-latest
309
317
needs :
310
318
- setup
@@ -316,7 +324,13 @@ jobs:
316
324
steps :
317
325
318
326
- name : Install CF CLI via apt
327
+ env :
328
+ IMAGE : ${{ matrix.image }}
319
329
run : |
330
+ docker run \
331
+ --interactive \
332
+ --rm \
333
+ ${IMAGE} <<EOC
320
334
set -o pipefail -e
321
335
322
336
sudo apt update
@@ -336,6 +350,7 @@ jobs:
336
350
cf${VERSION_MAJOR} -v
337
351
338
352
cf -v | grep "${VERSION_BUILD}"
353
+ EOC
339
354
340
355
update-rpm :
341
356
name : Update RPM Repository
You can’t perform that action at this time.
0 commit comments