From b52d34ef2a900eac85836f646345d1daee7056db Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 8 Sep 2026 04:50:45 +0000 Subject: [PATCH] Add a basic Go CI workflow Builds and tests on ubuntu-latest with the current stable Go, on every push and pull request. Mirrors the workflow already used in anacrolix/missinggo. go-version is "stable" rather than go-version-file: go.mod, because several of these repos declare an old go directive that no longer reflects what their code needs. Verified green on the default branch before adding. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_013BA3b7BbaJkPeeTYjhvi5g --- .github/workflows/go.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..f27ad09 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,24 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: [push, pull_request] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: stable + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...