style.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: Style check
  2. on:
  3. pull_request:
  4. branches:
  5. - main
  6. concurrency:
  7. group: dep-${{ github.head_ref || github.run_id }}
  8. cancel-in-progress: true
  9. jobs:
  10. test:
  11. name: ESLint and SuperLinter
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout code
  15. uses: actions/checkout@v4
  16. - name: Setup NodeJS
  17. uses: actions/setup-node@v4
  18. with:
  19. node-version: 20
  20. cache: yarn
  21. cache-dependency-path: ./web/package.json
  22. - name: Web dependencies
  23. run: |
  24. cd ./web
  25. yarn install --frozen-lockfile
  26. - name: Web style check
  27. run: |
  28. cd ./web
  29. yarn run lint
  30. - name: Super-linter
  31. uses: super-linter/super-linter/slim@v5
  32. env:
  33. BASH_SEVERITY: warning
  34. DEFAULT_BRANCH: main
  35. ERROR_ON_MISSING_EXEC_BIT: true
  36. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  37. IGNORE_GENERATED_FILES: true
  38. IGNORE_GITIGNORED_FILES: true
  39. VALIDATE_BASH: true
  40. VALIDATE_BASH_EXEC: true
  41. VALIDATE_GITHUB_ACTIONS: true
  42. VALIDATE_DOCKERFILE_HADOLINT: true
  43. VALIDATE_YAML: true