diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b24b7a8..da6035e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,14 @@ name: Build on: - - push - - pull_request + push: + branches: + - main + pull_request: + jobs: build: name: Build runs-on: ubuntu-latest - if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request' steps: - name: Install Go uses: actions/setup-go@v5 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 57e8776..bb05c46 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -16,9 +16,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.21' - cache: false + go-version: stable - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.55 + version: v1.61 diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index b9d11bc..7853fdc 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -18,7 +18,7 @@ jobs: name: Set up Go uses: actions/setup-go@v5 with: - go-version: '^1.19.3' + go-version: stable - name: Release uses: goreleaser/goreleaser-action@v6