playwright.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Playwright Tests
  2. on:
  3. push:
  4. branches: [ main, master ]
  5. pull_request:
  6. branches: [ main, master ]
  7. jobs:
  8. test:
  9. if: github.event.pull_request.draft == false
  10. timeout-minutes: 60
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. - uses: actions/setup-node@v3
  15. with:
  16. node-version: 16
  17. - name: Install dependencies
  18. run: npm ci
  19. - name: Install Playwright Browsers
  20. run: npx playwright install --with-deps
  21. - name: Install Rust
  22. uses: actions-rs/toolchain@v1
  23. with:
  24. profile: minimal
  25. toolchain: stable
  26. override: true
  27. - uses: Swatinem/rust-cache@v2
  28. - uses: actions/checkout@v3
  29. - uses: actions-rs/cargo@v1
  30. with:
  31. command: install
  32. args: --git https://github.com/DioxusLabs/cli
  33. - name: Run Playwright tests
  34. run: npx playwright test
  35. - uses: actions/upload-artifact@v3
  36. if: always()
  37. with:
  38. name: playwright-report
  39. path: playwright-report/
  40. retention-days: 30