style.yml 1.2 KB

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