From 5cb72de138d695cce53c3689f01caa9419a1d2a0 Mon Sep 17 00:00:00 2001 From: Sundaram Kumar Jha Date: Mon, 6 Jul 2026 11:15:01 +0000 Subject: [PATCH] ci: test on macOS and Windows in addition to Linux --- .github/workflows/test.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 807bb9bd..88704922 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,8 +5,14 @@ on: jobs: test: - name: Go Test & Vet - runs-on: ubuntu-latest + name: Go Test & Vet (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + env: + CGO_ENABLED: "0" steps: - uses: actions/checkout@v6 @@ -24,6 +30,10 @@ jobs: working-directory: src run: go vet ./... + - name: Test + working-directory: src + run: go test ./... + - name: Build (smoke test) working-directory: src - run: CGO_ENABLED=0 go build -o /dev/null ./ + run: go build ./... \ No newline at end of file