File tree Expand file tree Collapse file tree 2 files changed +35
-13
lines changed Expand file tree Collapse file tree 2 files changed +35
-13
lines changed Original file line number Diff line number Diff line change @@ -905,6 +905,14 @@ jobs:
905
905
needs :
906
906
- setup
907
907
- build-linux
908
+ strategy :
909
+ matrix :
910
+ image :
911
+ - debian:11
912
+ - debian:12
913
+ - ubuntu:20.04
914
+ - ubuntu:22.04
915
+ - ubuntu
908
916
runs-on : ubuntu-latest
909
917
steps :
910
918
@@ -913,21 +921,20 @@ jobs:
913
921
with :
914
922
name : cf-cli-linux-deb-packages
915
923
916
- - name : Display structure of downloaded files and test compression
924
+ - name : Display structure and verify
925
+ env :
926
+ IMAGE : ${{ matrix.image }}
917
927
run : |
918
- ls -R
919
-
920
- for i in debian:11 debian:12 ubuntu:20.04 ubuntu:22.04 ubuntu; do docker run \
928
+ docker run \
921
929
--interactive \
922
930
--rm \
923
931
-v .:/workspace \
924
- ${i:? } <<EOC
925
- printf "${i:? } -> "
932
+ ${IMAGE } <<EOC
933
+ printf "${IMAGE } -> "
926
934
grep PRETTY_NAME /etc/os-release | cut -d= -f2-
927
935
cd workspace
928
936
ls *.deb | xargs -n1 dpkg --info
929
937
EOC
930
- done
931
938
932
939
test-macos :
933
940
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,17 +324,23 @@ 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
- sudo apt update
323
- sudo apt install -y wget gnupg
336
+ apt update
337
+ apt install -y wget gnupg
324
338
325
- wget -q -O - ${CLAW_URL}/debian/cli.cloudfoundry.org.key | sudo apt-key add -
326
- echo "deb ${CLAW_URL}/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
339
+ wget -q -O - ${CLAW_URL}/debian/cli.cloudfoundry.org.key | apt-key add -
340
+ echo "deb ${CLAW_URL}/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
327
341
328
- sudo apt update
329
- sudo apt install -y cf${VERSION_MAJOR}-cli
342
+ apt update
343
+ apt install -y cf${VERSION_MAJOR}-cli
330
344
331
345
which cf
332
346
@@ -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