You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
921 B

  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@v1
  18. with:
  19. SUFFIX_FILTER: |
  20. .go
  21. .mod
  22. .sum
  23. - uses: golangci/golangci-lint-action@master
  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.27
  27. args: --timeout 10m
  28. github-token: ${{ secrets.github_token }}
  29. if: "env.GIT_DIFF != ''"