From 8bb9bccca5346b8d67cab0dee7a4445aba988843 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Mon, 8 Jan 2024 15:51:26 -0800 Subject: [PATCH] set working dir for playwright --- .github/workflows/main.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b1d2c48d..3c6f3414d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -145,22 +145,32 @@ jobs: toolchain: stable targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown - uses: mozilla-actions/sccache-action@v0.0.3 - - run: cd playwright-tests + + - uses: actions/checkout@v4 + - name: Install dependencies run: npm ci + working-directory: ./playwright-tests + - name: Install Playwright run: npm install -D @playwright/test + working-directory: ./playwright-tests + - name: Install Playwright Browsers run: npx playwright install --with-deps + working-directory: ./playwright-tests + # Cache the CLI by using cargo run internally # - name: Install Dioxus CLI # uses: actions-rs/cargo@v1 # with: # command: install # args: --path packages/cli - - uses: actions/checkout@v4 + - name: Run Playwright tests run: npx playwright test + working-directory: ./playwright-tests + - uses: actions/upload-artifact@v4 if: always() with: