diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dffddfc31..c0213f7fd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,5 @@ name: Lint -on: - push: +on: pull_request jobs: lint: @@ -8,10 +7,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Setup go uses: actions/setup-go@v4 with: go-version-file: go.mod + - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: