From 520fb1b01484dcee0ab09f6a4a151c11280c3748 Mon Sep 17 00:00:00 2001 From: Saswata Mukherjee Date: Thu, 4 Dec 2025 14:55:33 +0000 Subject: [PATCH 1/2] Actions: Add depbot + update actions to fix macos Signed-off-by: Saswata Mukherjee --- .github/dependabot.yaml | 12 ++++++++++++ .github/workflows/go.yaml | 11 ++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..79e177b --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,12 @@ +--- +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 20 + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: weekly \ No newline at end of file diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 84314bd..3f53733 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -13,10 +13,10 @@ jobs: name: Linters (Static Analysis) for Go steps: - name: Checkout code into the Go module directory. - uses: actions/checkout@v2 + uses: actions/checkout@v6 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v6 with: go-version: 1.18.x @@ -40,10 +40,10 @@ jobs: name: Unit tests on Go ${{ matrix.go }} ${{ matrix.platform }} steps: - name: Checkout code into the Go module directory. - uses: actions/checkout@v2 + uses: actions/checkout@v6 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v6 with: go-version: ${{ matrix.go }} @@ -51,8 +51,9 @@ jobs: if: runner.os == 'macOS' run: | brew install docker colima kind kubectl + # Use QEMU instead of Virtualization.framework (vz) to avoid permission issues on GitHub Actions. # Ensure Lima guest is accessible from mac host. - colima start --network-address + colima start --vm-type qemu --network-address # Find the IP address of the Lima guest. IP=$(limactl shell colima -- ip a show dev col0 | head -n3 | tail -n1 | cut -d' ' -f6 | rev | cut -c4- | rev) # Route packets destined for 172/8 through the Lima guest. From 4b50e683626780a12d971cfed4c3ed606ca63c95 Mon Sep 17 00:00:00 2001 From: Saswata Mukherjee Date: Thu, 4 Dec 2025 15:02:21 +0000 Subject: [PATCH 2/2] default to macos-13 Signed-off-by: Saswata Mukherjee --- .github/workflows/go.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 3f53733..97e5f13 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -35,7 +35,8 @@ jobs: fail-fast: false matrix: go: ["1.18.x", "1.19.x"] - platform: [ubuntu-latest, macos-latest] + # pinning to macos-13 to avoid issues with the default macos-latest runner. + platform: [ubuntu-latest, macos-13] name: Unit tests on Go ${{ matrix.go }} ${{ matrix.platform }} steps: @@ -51,9 +52,8 @@ jobs: if: runner.os == 'macOS' run: | brew install docker colima kind kubectl - # Use QEMU instead of Virtualization.framework (vz) to avoid permission issues on GitHub Actions. # Ensure Lima guest is accessible from mac host. - colima start --vm-type qemu --network-address + colima start --network-address # Find the IP address of the Lima guest. IP=$(limactl shell colima -- ip a show dev col0 | head -n3 | tail -n1 | cut -d' ' -f6 | rev | cut -c4- | rev) # Route packets destined for 172/8 through the Lima guest.