Use dioxus-sdk-time instead of fork now that the fork is merged #447
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: | |
| playwright-tests: | |
| if: github.event.pull_request.draft == false | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| shardIndex: [1, 2, 3, 4] | |
| shardTotal: [4] | |
| 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/[email protected] | |
| with: | |
| targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-all-crates: "true" | |
| cache-on-failure: "true" | |
| - uses: cargo-bins/cargo-binstall@main | |
| - name: Install CLI | |
| run: cargo binstall dioxus-cli -y --force --version 0.7.0 | |
| - 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 --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | |
| - name: Upload blob report to GitHub Actions Artifacts | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: blob-report-${{ matrix.shardIndex }} | |
| path: blob-report | |
| retention-days: 1 |