Skip to content

Commit 805e32c

Browse files
committed
.github/workflows/test.yml: Add limactl to firewall
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
1 parent 1fc6e86 commit 805e32c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,10 @@ jobs:
528528
run: brew install bash coreutils w3m socat
529529
- name: Uninstall qemu
530530
run: brew uninstall --ignore-dependencies --force qemu
531+
- name: "Allow limactl to firewall"
532+
if: matrix.create_arg == '--network=vzNAT'
533+
# Avoid macOS firewall prompt by pre-adding limactl to the firewall
534+
run: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add $(command -v limactl)
531535
- name: Test
532536
run: ./hack/test-templates.sh templates/${{ matrix.template }}
533537
- if: failure()

0 commit comments

Comments
 (0)