Browse Source

install playwrite test in CI

Evan Almloff 2 years ago
parent
commit
4a842e796f
1 changed files with 6 additions and 2 deletions
  1. 6 2
      .github/workflows/playwright.yml

+ 6 - 2
.github/workflows/playwright.yml

@@ -16,6 +16,8 @@ jobs:
         node-version: 16
         node-version: 16
     - name: Install dependencies
     - name: Install dependencies
       run: npm ci
       run: npm ci
+    - name: Install Playwright
+      run: npm install -D @playwright/test
     - name: Install Playwright Browsers
     - name: Install Playwright Browsers
       run: npx playwright install --with-deps
       run: npx playwright install --with-deps
     - name: Install Rust
     - name: Install Rust
@@ -25,8 +27,10 @@ jobs:
         toolchain: stable
         toolchain: stable
         override: true
         override: true
     - uses: Swatinem/rust-cache@v2
     - uses: Swatinem/rust-cache@v2
-    - uses: actions/checkout@v3
-    - uses: actions-rs/cargo@v1
+    - name: Install WASM toolchain
+      run: rustup target add wasm32-unknown-unknown
+    - name: Install Dioxus CLI
+      uses: actions-rs/cargo@v1
       with:
       with:
         command: install
         command: install
         args: --git https://github.com/DioxusLabs/cli
         args: --git https://github.com/DioxusLabs/cli