From 48657d20daf4927b9bfc81771d3911a16a3cf0bc Mon Sep 17 00:00:00 2001 From: James Rasell Date: Fri, 19 Jun 2026 07:55:02 +0100 Subject: [PATCH] ci: Run on modern Go and latest Ubuntu runner. --- .github/workflows/ci.yaml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 957bc5b..ca63f46 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,15 +1,21 @@ -name: Run CI Tests -on: [push] -env: - GO_VERSION: 1.19.1 +name: Test and Lint + +on: + pull_request: + push: + branches: ["main"] + jobs: - run-tests: - runs-on: ubuntu-22.04 + test: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: ["oldstable", "stable"] steps: - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 with: - go-version: ${{env.GO_VERSION}} + go-version: ${{ matrix.go-version }} - name: Run Go Vet run: | go vet ./...