codestyle.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.sum
  36. .github/workflows/codestyle.yml
  37. - name: Print go version
  38. run: go version
  39. - name: service
  40. run: make -wC service codestyle
  41. - name: Setup Node
  42. uses: actions/setup-node@v4
  43. with:
  44. node-version: '22'
  45. cache: 'npm'
  46. cache-dependency-path: |
  47. frontend/package-lock.json
  48. integration-tests/package-lock.json
  49. - name: frontend
  50. run: make -wC frontend codestyle
  51. - name: frontend unit tests
  52. run: make -wC frontend unittests
  53. - name: integration tests codestyle
  54. run: make -wC integration-tests codestyle