From 4adbde19487f18b1294d00ee8ca50fb9d6a479b5 Mon Sep 17 00:00:00 2001 From: Mikhail Yenuchenko Date: Wed, 15 Jul 2026 23:26:42 +0300 Subject: [PATCH] ci: run go vet and go test on push/PR Tests (including the rate-limit suite) previously only ran manually on the build server; now every push to main and every PR triggers them via GitHub Actions. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..859ed79 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: test + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: "1.26" + cache: true + + - name: Vet + run: go vet ./... + + - name: Test + run: go test ./...