github.com/evdatsion/aphelion-dpos-bft@v0.32.1/.github/workflows/lint.yaml (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: 4 15 steps: 16 - uses: actions/checkout@v2 17 - uses: technote-space/get-diff-action@v4 18 with: 19 PATTERNS: | 20 **/**.go 21 go.mod 22 go.sum 23 - uses: golangci/golangci-lint-action@v2.3.0 24 with: 25 # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. 26 version: v1.31 27 args: --timeout 10m 28 github-token: ${{ secrets.github_token }} 29 if: env.GIT_DIFF