From e860eced799e64ebff56012a7655155d26b3a2a2 Mon Sep 17 00:00:00 2001 From: Bryan McNulty Date: Sat, 26 Apr 2025 04:48:35 -0500 Subject: Fix go workflow --- .github/workflows/go.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 93c8c58..58cbddb 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -3,26 +3,25 @@ name: Go -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] +on: [push] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v4 - with: + runs-on: ubuntu-latest + strategy: + matrix: go-version: [ '1.23', '1.24' ] - - name: Build - run: go build -v ./... + steps: + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + + - name: Build + run: go build -v ./... - - name: Test - run: go test -v ./... + - name: Test + run: go test -v ./... -- cgit v1.2.3