checks.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: Checks
  2. on: [push, pull_request]
  3. jobs:
  4. cypress-run:
  5. name: Cypress
  6. runs-on: ${{ matrix.os }}
  7. strategy:
  8. matrix:
  9. os: [ubuntu-latest]
  10. node-version: [14.x]
  11. needs: [lint]
  12. steps:
  13. - name: Setup Node
  14. uses: actions/setup-node@v1
  15. with:
  16. node-version: ${{ matrix.node }}
  17. - name: Checkout
  18. uses: actions/checkout@v2
  19. - name: Cypress run
  20. uses: cypress-io/github-action@v2
  21. with:
  22. install-command: yarn --frozen-lockfile --silent
  23. start: yarn start
  24. wait-on: 'http://localhost:3000'
  25. wait-on-timeout: 360
  26. browser: chrome
  27. headless: true
  28. lint:
  29. name: Linting
  30. runs-on: ${{ matrix.os }}
  31. strategy:
  32. matrix:
  33. os: [ubuntu-latest]
  34. node-version: [14.x]
  35. fail-fast: true
  36. steps:
  37. - uses: actions/checkout@v2
  38. - name: Use Node.js ${{matrix.node-version}}
  39. uses: actions/setup-node@v1
  40. with:
  41. node-version: ${{matrix.node-version}}
  42. - name: Install modules
  43. run: yarn install --frozen-lockfile
  44. - name: Run ESLint
  45. run: yarn lint