From 1e0a88dc8ea88d537a4214fec849ef86701c62cf Mon Sep 17 00:00:00 2001 From: deadprogram Date: Wed, 4 Mar 2026 17:53:59 +0100 Subject: [PATCH] ci: add Github Action for tests Signed-off-by: deadprogram --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..0fd41b1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: "stable" + + - name: Build + run: go build . + + - name: Test + run: go test -v ./...