From 62ba9641aa1a94bc5ef06de51f2f14066873178c Mon Sep 17 00:00:00 2001 From: Geoff Garside Date: Thu, 5 Jun 2025 22:17:06 +0100 Subject: [PATCH 1/3] Update github actions workflow * Change to only test with stable and old stable versions * Update action reference versions --- .github/workflows/go.yaml | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 0076dc3..302bd13 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -2,47 +2,32 @@ name: Go on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: - build: runs-on: ubuntu-latest strategy: matrix: - go: - - "1.8" - - "1.9" - - "1.10" - - "1.11" - - "1.12" - - "1.13" - - "1.14" - - "1.15" - name: Build Go ${{ matrix.go }} + go-version: + - "oldstable" + - "stable" steps: - - - name: Set up Go 1.x - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 with: - go-version: ^${{ matrix.go }} - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: go get -v -t -d ./... - + go-version: ^${{ matrix.go-version }} + - name: Install Dependencies + run: go get . - name: Build run: go build -v ./... - - name: Test amd64 run: go test -v ./... env: GOARCH: amd64 - - name: Test 386 run: go test -v ./... env: From 5c1a6a538f8dee66e5f9989728c1037a89af70e2 Mon Sep 17 00:00:00 2001 From: Geoff Garside Date: Thu, 5 Jun 2025 22:28:59 +0100 Subject: [PATCH 2/3] Correct alias version names --- .github/workflows/go.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 302bd13..c37f6d3 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -12,8 +12,8 @@ jobs: strategy: matrix: go-version: - - "oldstable" - - "stable" + - oldstable + - stable steps: - uses: actions/checkout@v4 - name: Setup Go ${{ matrix.go-version }} From 8b6012a96be997028e60d2305558d2c511e7d144 Mon Sep 17 00:00:00 2001 From: Geoff Garside Date: Thu, 5 Jun 2025 22:31:45 +0100 Subject: [PATCH 3/3] Fix setup-go version spec --- .github/workflows/go.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index c37f6d3..31d04e8 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -19,7 +19,7 @@ jobs: - name: Setup Go ${{ matrix.go-version }} uses: actions/setup-go@v5 with: - go-version: ^${{ matrix.go-version }} + go-version: ${{ matrix.go-version }} - name: Install Dependencies run: go get . - name: Build