Skip to content

Commit b8d4d79

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 710371b commit b8d4d79

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
@@ -505,10 +505,13 @@ jobs:
505505
matrix:
506506
template:
507507
- default.yaml
508+
create_arg:
509+
- ""
510+
- "--network=vzNAT"
508511
steps:
509512
- name: "Adjust LIMACTL_CREATE_ARGS"
510513
# --cpus=1 is needed for running vz on GHA: https://github.com/lima-vm/lima/pull/1511#issuecomment-1574937888
511-
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --cpus 1 --memory 1" >>$GITHUB_ENV
514+
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --cpus 1 --memory 1 ${{ matrix.create_arg }}" >>$GITHUB_ENV
512515
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
513516
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
514517
with:
@@ -530,7 +533,7 @@ jobs:
530533
- if: failure()
531534
uses: ./.github/actions/upload_failure_logs_if_exists
532535
with:
533-
suffix: ${{ matrix.template }}
536+
suffix: ${{ matrix.template }}${{ matrix.create_arg }}
534537

535538
# gomodjail is a library sandbox for Go
536539
# https://github.com/AkihiroSuda/gomodjail

0 commit comments

Comments
 (0)