From bd8f2932b288736b11ce4f07a1549bf06fb54c38 Mon Sep 17 00:00:00 2001 From: Dan Croak Date: Wed, 31 Dec 2025 10:01:01 -0500 Subject: [PATCH] ci: add GitHub Actions workflow for tests test on both Ubuntu and macOS since tund runs on Linux servers while tun runs on developer laptops (typically macOS) Co-Authored-By: Warp --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..56604bf --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: test +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + test-ubuntu: + name: ubuntu + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.25" + + - name: Run tests + run: go test -v ./... + + test-macos: + name: macos + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.25" + + - name: Run tests + run: go test -v ./...