diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3cb19fd..15c2421 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,10 @@ name: Lint on: + push: + branches: + - main + - master pull_request: jobs: @@ -8,10 +12,10 @@ jobs: name: golangci‑lint runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.24' - - uses: actions/checkout@v4 + go-version: stable - name: golangci-lint uses: golangci/golangci-lint-action@v8 with: @@ -24,10 +28,4 @@ jobs: args: --enable bodyclose --timeout 10m # Optional: show only new issues if it's a pull request. The default value is `false`. - only-new-issues: true - - # Optional: if set to true then the action don't cache or restore ~/go/pkg. - # skip-pkg-cache: true - - # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. - # skip-build-cache: true + # only-new-issues: true