diff options
author | Bryan McNulty <bryan@falconops.com> | 2025-04-26 04:48:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-26 04:48:35 -0500 |
commit | e860eced799e64ebff56012a7655155d26b3a2a2 (patch) | |
tree | 9f59ab090f1540e7b4f4f578affa47a687ab026e | |
parent | 97cd1d343161a61f1d8eacfc6a53f65748e50548 (diff) | |
download | goexec-e860eced799e64ebff56012a7655155d26b3a2a2.tar.gz goexec-e860eced799e64ebff56012a7655155d26b3a2a2.zip |
Fix go workflow
-rw-r--r-- | .github/workflows/go.yml | 31 |
1 files 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 ./... |