Skip to content

Commit 2ccf54f

Browse files
committed
.github/workflows/test.yml: Add test using default.yaml with --network=vzNAT
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
1 parent cdf34b0 commit 2ccf54f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,13 @@ jobs:
516516
matrix:
517517
template:
518518
- default.yaml
519+
create_arg:
520+
- ""
521+
- "--network=vzNAT"
519522
steps:
520523
- name: "Adjust LIMACTL_CREATE_ARGS"
521524
# --cpus=1 is needed for running vz on GHA: https://github.com/lima-vm/lima/pull/1511#issuecomment-1574937888
522-
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --cpus 1 --memory 1" >>$GITHUB_ENV
525+
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --cpus 1 --memory 1 ${{ matrix.create_arg }}" >>$GITHUB_ENV
523526
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
524527
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
525528
with:
@@ -541,7 +544,7 @@ jobs:
541544
- if: failure()
542545
uses: ./.github/actions/upload_failure_logs_if_exists
543546
with:
544-
suffix: ${{ matrix.template }}
547+
suffix: ${{ matrix.template }}${{ matrix.create_arg }}
545548

546549
# gomodjail is a library sandbox for Go
547550
# https://github.com/AkihiroSuda/gomodjail

0 commit comments

Comments
 (0)