go-lint.yml 760 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Lint
  2. on:
  3. push:
  4. paths-ignore:
  5. - 'web/**'
  6. pull_request:
  7. paths-ignore:
  8. - 'web/**'
  9. permissions:
  10. contents: read
  11. jobs:
  12. golangci:
  13. name: Go linter
  14. if: ${{ github.actor != 'dependabot[bot]' }}
  15. runs-on: ubuntu-latest
  16. steps:
  17. - id: skip_check
  18. uses: fkirc/skip-duplicate-actions@v5
  19. with:
  20. concurrent_skipping: 'same_content_newer'
  21. - uses: actions/checkout@v4
  22. with:
  23. fetch-depth: 0
  24. - uses: actions/setup-go@v5
  25. with:
  26. go-version: '1.22'
  27. cache: true
  28. - uses: actions/checkout@v4
  29. - name: golangci-lint
  30. uses: golangci/golangci-lint-action@v6
  31. with:
  32. only-new-issues: true
  33. args: --timeout=3m