diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 603ad95..0f02636 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,17 @@ name: CI + on: push: + branches: + - master + pull_request: jobs: build: runs-on: ubuntu-latest strategy: matrix: - go: [ '1.23', '1.22' ] + go: [ stable, oldstable ] name: Go ${{ matrix.go }} test steps: - uses: actions/checkout@v4 @@ -19,7 +23,7 @@ jobs: - run: make lint - run: make test_coverage - name: Upload code coverage to codecov - if: matrix.go == '1.23' + if: matrix.go == 'stable' uses: codecov/codecov-action@v3 with: file: ./coverage.out diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14f0dff..9301bae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.x + go-version: stable - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: