set working dir for playwright
This commit is contained in:
1 file changed
+12
-2
@@ -145,22 +145,32 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown
|
targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown
|
||||||
- uses: mozilla-actions/sccache-action@v0.0.3
|
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||||
- run: cd playwright-tests
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
working-directory: ./playwright-tests
|
||||||
|
|
||||||
- name: Install Playwright
|
- name: Install Playwright
|
||||||
run: npm install -D @playwright/test
|
run: npm install -D @playwright/test
|
||||||
|
working-directory: ./playwright-tests
|
||||||
|
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: npx playwright install --with-deps
|
run: npx playwright install --with-deps
|
||||||
|
working-directory: ./playwright-tests
|
||||||
|
|
||||||
# Cache the CLI by using cargo run internally
|
# Cache the CLI by using cargo run internally
|
||||||
# - name: Install Dioxus CLI
|
# - name: Install Dioxus CLI
|
||||||
# uses: actions-rs/cargo@v1
|
# uses: actions-rs/cargo@v1
|
||||||
# with:
|
# with:
|
||||||
# command: install
|
# command: install
|
||||||
# args: --path packages/cli
|
# args: --path packages/cli
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
run: npx playwright test
|
run: npx playwright test
|
||||||
|
working-directory: ./playwright-tests
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in new issue
Block a user