Inline documentation #88
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Playwright Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - /** | |
| - preview/**/*.rs | |
| - preview/**/Cargo.toml | |
| - primitives/**/*.rs | |
| - primitives/**/Cargo.toml | |
| - .github/** | |
| - Cargo.toml | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| branches: | |
| - main | |
| paths: | |
| - /** | |
| - preview/**/*.rs | |
| - preview/**/Cargo.toml | |
| - primitives/**/*.rs | |
| - primitives/**/Cargo.toml | |
| - .github/** | |
| - Cargo.toml | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| if: github.event.pull_request.draft == false | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Do our best to cache the toolchain and node install steps | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@1.86.0 | |
| with: | |
| targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-all-crates: "true" | |
| cache-on-failure: "true" | |
| - name: Install dx | |
| run: cargo install dioxus-cli --git https://github.com/dioxuslabs/dioxus --rev 0dd0f05d | |
| - name: Install dependencies | |
| run: cd ./playwright && npm ci | |
| - name: Install Playwright Browsers | |
| run: cd ./playwright && npx playwright install --with-deps | |
| - name: Run Playwright tests | |
| run: cd ./playwright && npx playwright test | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 30 |