codestyle.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ---
  2. name: "Codestyle checks"
  3. on:
  4. push:
  5. paths:
  6. - '.github/workflows/codestyle.yml'
  7. - 'Makefile'
  8. - 'frontend/**'
  9. - 'integration-tests/**'
  10. - 'proto/**'
  11. - 'service/**'
  12. pull_request:
  13. branches:
  14. - next
  15. paths:
  16. - '.github/workflows/codestyle.yml'
  17. - 'Makefile'
  18. - 'frontend/**'
  19. - 'integration-tests/**'
  20. - 'proto/**'
  21. - 'service/**'
  22. jobs:
  23. codestyle:
  24. runs-on: ubuntu-latest
  25. steps:
  26. - name: Checkout
  27. uses: actions/checkout@v4
  28. - name: Setup Go
  29. uses: actions/setup-go@v5
  30. with:
  31. go-version-file: 'service/go.mod'
  32. cache: true
  33. # Keyed per workflow, as each builds different artifacts.
  34. cache-dependency-path: |
  35. service/go.mod
  36. service/go.sum
  37. .github/workflows/codestyle.yml
  38. - name: Print go version
  39. run: go version
  40. - name: service
  41. run: make -wC service codestyle
  42. - name: Setup Node
  43. uses: actions/setup-node@v4
  44. with:
  45. node-version: '22'
  46. cache: 'npm'
  47. cache-dependency-path: |
  48. frontend/package-lock.json
  49. integration-tests/package-lock.json
  50. - name: frontend
  51. run: make -wC frontend codestyle
  52. - name: frontend unit tests
  53. run: make -wC frontend unittests
  54. - name: integration tests codestyle
  55. run: make -wC integration-tests codestyle