From 13503fcfdd5e505042492bcc30b08af4e541a819 Mon Sep 17 00:00:00 2001 From: Krzysztof Szarek Date: Thu, 5 Mar 2026 11:00:58 +0100 Subject: [PATCH] ci: add PR checks workflow with tests and vet --- .github/workflows/pr-checks.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..da4535e --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,27 @@ +name: tests +permissions: + contents: read + +on: pull_request + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Check out repository code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + + - name: Set up Go + uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 + with: + go-version-file: "go.mod" + + - name: Download dependencies + run: go mod download + + - name: Test + run: go test -v -cover -race ./... + + - name: Run Go Vet + run: go vet ./...