浏览代码

wip: faster playwright test with better caching (#3160)

Jonathan Kelley 7 月之前
父节点
当前提交
e700e00b6a
共有 1 个文件被更改,包括 8 次插入10 次删除
  1. 8 10
      .github/workflows/main.yml

+ 8 - 10
.github/workflows/main.yml

@@ -214,6 +214,7 @@ jobs:
       - run: cargo clippy --workspace --examples --tests --all-features --all-targets -- -D warnings
 
   nix:
+    if: github.event.pull_request.draft == false
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
@@ -239,12 +240,6 @@ jobs:
       - uses: actions/setup-node@v4
         with:
           node-version: 16
-      - name: Free Disk Space (Ubuntu)
-        uses: jlumbroso/free-disk-space@v1.3.1
-        with: # speed things up a bit
-          large-packages: false
-          docker-images: false
-          swap-storage: false
       - name: Install Rust
         uses: dtolnay/rust-toolchain@master
         with:
@@ -254,8 +249,12 @@ jobs:
         with:
           cache-all-crates: "true"
           cache-on-failure: "true"
-          key: "playwright-tests"
-
+      - name: Free Disk Space (Ubuntu)
+        uses: jlumbroso/free-disk-space@v1.3.1
+        with: # speed things up a bit
+          large-packages: false
+          docker-images: false
+          swap-storage: false
       - name: Playwright
         working-directory: ./packages/playwright-tests
         run: |
@@ -263,12 +262,11 @@ jobs:
           npm install -D @playwright/test
           npx playwright install --with-deps
           npx playwright test
-
       - uses: actions/upload-artifact@v4
         if: always()
         with:
           name: playwright-report
-          path: playwright-report/
+          path: ./packages/playwright-tests/playwright-report/
           retention-days: 30
 
   matrix_test: