소스 검색

set working dir for playwright

Jonathan Kelley 1 년 전
부모
커밋
8bb9bccca5
1개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. 12 2
      .github/workflows/main.yml

+ 12 - 2
.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: