_test.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: Tests
  2. on:
  3. workflow_call:
  4. jobs:
  5. e2e:
  6. name: E2E Tests
  7. timeout-minutes: 60
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v3
  11. - uses: actions/setup-node@v3
  12. with:
  13. node-version: 20
  14. - name: Install dependencies
  15. run: npm ci
  16. - name: Install Playwright Browsers
  17. run: npx playwright install --with-deps
  18. working-directory: packages/quill
  19. - name: Run Playwright tests
  20. run: npm run test:e2e
  21. working-directory: packages/quill
  22. fuzz:
  23. name: Fuzz Tests
  24. runs-on: ubuntu-latest
  25. steps:
  26. - name: Git checkout
  27. uses: actions/checkout@v4
  28. - name: Use Node.js
  29. uses: actions/setup-node@v4
  30. with:
  31. node-version: 20
  32. - run: npm ci
  33. env:
  34. PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
  35. - run: npm run test:fuzz -w quill
  36. unit:
  37. name: Unit Tests
  38. runs-on: ubuntu-latest
  39. strategy:
  40. fail-fast: false
  41. matrix:
  42. browser: [chromium, webkit, firefox]
  43. steps:
  44. - name: Git checkout
  45. uses: actions/checkout@v3
  46. - name: Use Node.js
  47. uses: actions/setup-node@v3
  48. with:
  49. node-version: 20
  50. - run: npm ci
  51. - run: npx playwright install --with-deps
  52. - run: npm run lint
  53. - run: npm run test:unit -w quill || npm run test:unit -w quill || npm run test:unit -w quill
  54. env:
  55. BROWSER: ${{ matrix.browser }}