From 0b17967edb8ab26da053ec0c42cf3f4fad1ff9a6 Mon Sep 17 00:00:00 2001 From: bigrosss Date: Sat, 31 Jan 2026 16:49:33 +0100 Subject: [PATCH] ci: add Go test workflow Added GitHub Actions workflow, which automatically runs go test ./... for each PR and pushes to main to quickly catch test failures before review. --- .github/workflows/go-test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/go-test.yml diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 000000000..797a27730 --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,23 @@ +name: Go Test + +on: + pull_request: + push: + branches: [ main ] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: "1.22" + cache: true + + - name: Run unit tests + run: go test ./... -count=1