Update commands for pnpm

This commit is contained in:
Matthias 2024-05-24 06:57:04 +02:00
parent ee201a9635
commit 964341f728
4 changed files with 12 additions and 12 deletions

View File

@ -38,5 +38,5 @@
]
}
},
"postCreateCommand": "yarn install"
"postCreateCommand": "pnpm install"
}

View File

@ -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

View File

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

View File

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