codestyle.yml 1.3 KB

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