diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5d6dbbe..103af53 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,9 +1,9 @@ name: golangci-lint on: + pull_request: push: branches: - main - pull_request: permissions: contents: read @@ -18,6 +18,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} @@ -25,4 +27,4 @@ jobs: uses: golangci/golangci-lint-action@v6 with: args: --timeout=5m - version: v1.59 + version: latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56ac0ab..adf33bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,4 @@ name: goreleaser - on: push: tags: