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.

28 lines
898 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. steps:
  15. - uses: actions/checkout@v2
  16. - uses: technote-space/get-diff-action@v1
  17. with:
  18. SUFFIX_FILTER: |
  19. .go
  20. .mod
  21. .sum
  22. - uses: golangci/golangci-lint-action@master
  23. with:
  24. # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
  25. version: v1.27
  26. args: --timeout 10m
  27. github-token: ${{ secrets.github_token }}
  28. if: "env.GIT_DIFF != ''"