From f6855d644582fa57feaa8d3a3e5cadb8584e0141 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Wed, 7 Jan 2026 15:02:45 -1000 Subject: [PATCH] feat: install chromium before running playwright --- .github/workflows/ci.yml | 6 ++---- package.json | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64b04a8..3565a02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: 'CI' +name: "CI" on: push: @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - npmcmd: ['test'] + npmcmd: ["test"] steps: - uses: actions/checkout@v4 - name: Configure @@ -27,8 +27,6 @@ jobs: git config --global user.name uirouter_github_actions - name: Install Dependencies run: npm ci - - name: Install Playwright Browsers - run: npx playwright install chromium - name: Check Peer Dependencies run: npx check-peer-dependencies - name: Run Tests diff --git a/package.json b/package.json index d4d29fc..a6bccca 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "start": "vite", "build": "vite build", "preview": "vite preview", - "test": "npm run build && playwright test", - "test:ui": "npm run build && playwright test --ui", + "test": "npx playwright install chromium && npm run build && playwright test", + "test:ui": "npx playwright install chromium && npm run build && playwright test --ui", "test:report": "playwright show-report", "gh-pages": "npm run build && git add docs && git commit -m 'update github pages' docs && git push" },