From 7e7411b9fd69840ed73d76d0d9deae2eb92bbba7 Mon Sep 17 00:00:00 2001 From: Xingwang Liao Date: Mon, 25 Dec 2023 03:50:42 +0000 Subject: [PATCH] ci: update test config --- .github/workflows/ci.yml | 13 +++++++------ package.json | 4 +++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0e43f1..bcf85e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index cbe6f17..de47f08 100644 --- a/package.json +++ b/package.json @@ -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",