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

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-11-02 00:57:40 -07:00
1 parent 9e621746d1
commit e700e00b6a
1 file changed
+8 -10
+8 -10
View File
@@ -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: