Skip to content

Commit

Permalink
ci: update test config
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed Dec 25, 2023
1 parent 98828d8 commit 7e7411b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-node@v1
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: '12.x'
- run: yarn install
- run: yarn build
node-version: '18.x'
- run: pnpm install
- run: pnpm lint
- run: pnpm build
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"type": "module",
"scripts": {
"serve": "vite",
"build": "vite build"
"build": "vite build",
"lint": "eslint --ext .js,.vue src",
"lint:fix": "eslint --fix --ext .js,.vue src"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 7e7411b

Please sign in to comment.