From f4df4ba04e89ccd637f9e0cef2225d3eade11f93 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Wed, 25 Feb 2026 01:59:34 +0000 Subject: [PATCH] ci: add GitHub Actions workflow with Go 1.25/1.26 matrix --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..aeb44ad --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: ['1.25', '1.26'] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - run: go vet ./... + - run: go test -race -coverprofile=coverage.txt ./... + - name: Upload coverage + if: matrix.go-version == '1.26' + uses: codecov/codecov-action@v4 + with: + files: coverage.txt + continue-on-error: true