Skip to content

Commit

Permalink
Merge pull request #52 from JuckZ/develop
Browse files Browse the repository at this point in the history
fix: test error
  • Loading branch information
JuckZ authored Dec 17, 2024
2 parents 9958f60 + 5ce923e commit 7bd76cd
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 51 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,27 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.14.x

- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install

- name: Install dependencies
run: pnpm install

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps

- name: Run Playwright tests
run: pnpm exec playwright test

- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ jobs:
with:
node-version: 18.14.x

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tag-version-prefix=""
# registry = https://registry.npmjs.org
# @local:registry = http://localhost:4873/
# registry=https://registry.npmmirror.com
registry=https://registry.npmmirror.com
electron_mirror=https://npmmirror.com/mirrors/electron/
# proxy=http://localhost:7890
# https-proxy=http://localhost:7890
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'",
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'",
"test:coverage": "vitest run --coverage",
"report:coverage": "npm run test:coverage && vitest --reporter=junit --outputFile=test-report.junit.xml",
"report:coverage": "pnpm run test:coverage && vitest --reporter=junit --outputFile=test-report.junit.xml",
"build-only": "vite build",
"update": "ncu -u",
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false",
Expand Down Expand Up @@ -189,10 +189,10 @@
"vite-plugin-top-level-await": "^1.3.1",
"vite-plugin-wasm": "^3.2.2",
"vitepress": "1.0.0-rc.23",
"vitest": "^2.0.5",
"vitest": "^2.1.8",
"vue-tsc": "^1.8.11"
},
"packageManager": "pnpm@8.6.12",
"packageManager": "pnpm@9.15.0",
"engines": {
"node": ">=14.16"
}
Expand Down
Loading

0 comments on commit 7bd76cd

Please sign in to comment.