ci.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: CI
  2. on:
  3. workflow_call:
  4. workflow_dispatch:
  5. inputs:
  6. push_mage:
  7. description: 'Push images'
  8. required: false
  9. type: boolean
  10. push:
  11. branches: [ "main" ]
  12. paths-ignore:
  13. - "docs/**"
  14. - "**/*.md"
  15. - "**/*.yaml"
  16. - "CONTRIBUTORS"
  17. - "CHANGELOG/**"
  18. - "controllers/**"
  19. - "service/**"
  20. - "webhooks/**"
  21. - "frontend/**"
  22. pull_request:
  23. branches: [ "*" ]
  24. paths-ignore:
  25. - "docs/**"
  26. - "CHANGELOG/**"
  27. - "**/*.md"
  28. - "**/*.yaml"
  29. - "CONTRIBUTORS"
  30. - "CHANGELOG/**"
  31. - "controllers/**"
  32. - "service/**"
  33. - "webhooks/**"
  34. - "frontend/**"
  35. jobs:
  36. golangci-lint:
  37. runs-on: ubuntu-24.04
  38. steps:
  39. - name: Checkout
  40. uses: actions/checkout@v4
  41. - name: Setup Golang with cache
  42. uses: magnetikonline/action-golang-cache@v5
  43. with:
  44. go-version: "1.23"
  45. - name: Run Linter
  46. uses: golangci/golangci-lint-action@v6
  47. with:
  48. version: v1.64.5
  49. args: "--out-format colored-line-number --max-issues-per-linter 0 --max-same-issues 0"