playwright.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-20.04
  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
  20. run: npm install -D @playwright/test
  21. - name: Install Playwright Browsers
  22. run: npx playwright install --with-deps
  23. - name: Install Rust
  24. uses: actions-rs/toolchain@v1
  25. with:
  26. profile: minimal
  27. toolchain: stable
  28. override: true
  29. - uses: Swatinem/rust-cache@v2
  30. - name: Install WASM toolchain
  31. run: rustup target add wasm32-unknown-unknown
  32. - name: Install Dioxus CLI
  33. uses: actions-rs/cargo@v1
  34. with:
  35. command: install
  36. args: --path packages/cli
  37. - name: Run Playwright tests
  38. run: npx playwright test
  39. - uses: actions/upload-artifact@v3
  40. if: always()
  41. with:
  42. name: playwright-report
  43. path: playwright-report/
  44. retention-days: 30