2
0

lint.yml 989 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Bakerydemo CI
  2. on:
  3. push:
  4. pull_request:
  5. concurrency:
  6. group: ${{ github.workflow }}-${{ github.ref }}
  7. cancel-in-progress: true
  8. jobs:
  9. lint-server:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Set up Python
  14. uses: actions/setup-python@v4
  15. with:
  16. python-version: '3.12'
  17. cache: 'pip'
  18. cache-dependency-path: 'requirements/*.txt'
  19. - name: Install dependencies
  20. run: |
  21. python -m pip install --upgrade pip
  22. pip install -r requirements/development.txt
  23. - name: Lint server
  24. run: |
  25. make lint-server
  26. lint-client:
  27. runs-on: ubuntu-latest
  28. steps:
  29. - uses: actions/checkout@v3
  30. - name: Set up Node
  31. uses: actions/setup-node@v4
  32. with:
  33. node-version-file: '.nvmrc'
  34. cache: 'npm'
  35. - name: Install dependencies
  36. run: npm ci
  37. - name: Lint client
  38. run: |
  39. make lint-client