github.com/Oyster-zx/tendermint@v0.34.24-fork/.github/workflows/lint.yml (about) 1 name: Lint 2 # Lint runs golangci-lint over the entire Tendermint repository 3 # This workflow is run on every pull request and push to master 4 # The `golangci` job will pass without running if no *.{go, mod, sum} files have been modified. 5 on: 6 pull_request: 7 push: 8 branches: 9 - master 10 jobs: 11 golangci: 12 name: golangci-lint 13 runs-on: ubuntu-latest 14 timeout-minutes: 8 15 steps: 16 - uses: actions/checkout@v3 17 - uses: actions/setup-go@v3 18 with: 19 go-version: '1.18' 20 - uses: technote-space/get-diff-action@v6 21 with: 22 PATTERNS: | 23 **/**.go 24 go.mod 25 go.sum 26 - uses: golangci/golangci-lint-action@v3 27 with: 28 # Required: the version of golangci-lint is required and 29 # must be specified without patch version: we always use the 30 # latest patch version. 31 version: v1.50.1 32 args: --timeout 10m 33 github-token: ${{ secrets.github_token }} 34 if: env.GIT_DIFF