diff options
Diffstat (limited to '.github/workflows/go.yml')
-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 ./... |