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" },