From 964341f7280f7c681f8c015d11716cb08e425ebc Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 24 May 2024 06:57:04 +0200 Subject: [PATCH] Update commands for pnpm --- .devcontainer/devcontainer.json | 2 +- .github/workflows/ci.yml | 14 +++++++------- package.json | 6 +++--- playwright.config.ts | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4fa268ef..0dabf1d5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -38,5 +38,5 @@ ] } }, - "postCreateCommand": "yarn install" + "postCreateCommand": "pnpm install" } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cbabb9d..9f89e36d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,23 +30,23 @@ jobs: with: node-version: ${{ matrix.node }} - - run: yarn install + - run: pnpm run install - name: Run Lint - run: yarn lint-ci + run: pnpm run lint-ci - name: Run type check - run: yarn check-types + run: pnpm run check-types - name: Run Tests - run: yarn test:unit + run: pnpm run test:unit # Playwright section - name: Install Playwright Browsers - run: yarn playwright install --with-deps + run: pnpm run playwright install --with-deps - name: Run Playwright tests - run: yarn playwright test + run: pnpm run playwright test - uses: actions/upload-artifact@v4 if: ${{ !cancelled() }} @@ -58,7 +58,7 @@ jobs: # End Playwright section - name: Build build - run: yarn build + run: pnpm run build - name: Archive artifacts uses: actions/upload-artifact@v4 diff --git a/package.json b/package.json index 1148d90d..63b10e43 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "check-types": "vue-tsc --noEmit", "lint": "eslint src tests e2e", "lint-ci": "eslint --no-fix src tests e2e", - "test:e2e": "yarn playwright test", - "test:e2e-chromium": "yarn playwright test --project=chromium", - "test:e2e-msedge": "yarn playwright test --project=msedge" + "test:e2e": "pnpm run playwright test", + "test:e2e-chromium": "pnpm run playwright test --project=chromium", + "test:e2e-msedge": "pnpm run playwright test --project=msedge" }, "dependencies": { "@noction/vue-draggable-grid": "1.9.16", diff --git a/playwright.config.ts b/playwright.config.ts index 0b7c6bc5..4cfa55b5 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -73,7 +73,7 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: { - command: 'yarn dev', + command: 'pnpm run dev', url: 'http://localhost:3000', reuseExistingServer: !process.env.CI, },