From 2464a6cf900688b17d4d0a6e919731b20d37fb75 Mon Sep 17 00:00:00 2001 From: "Mr.Mao" <951416545@qq.com> Date: Sun, 7 May 2023 15:19:27 +0800 Subject: [PATCH] chore: fix .github ci error --- .github/workflows/ci.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94c698d..9548a97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,17 +14,24 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + - name: Set node uses: actions/setup-node@v3 with: node-version: 18.x cache: pnpm + - name: Setup + run: npm i -g @antfu/ni + - name: Install - run: npm i pnpm -g && pnpm i + run: nci - name: Lint - run: pnpm lint + run: nr lint test: runs-on: ubuntu-latest @@ -36,16 +43,27 @@ jobs: steps: - uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + - name: Set node version to ${{ matrix.node }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} + cache: pnpm + + - name: Setup + run: npm i -g @antfu/ni - name: Install - run: npm i pnpm -g && pnpm i + run: nci - name: Build - run: pnpm build + run: nr build + + - name: Typecheck + run: nr typecheck - name: Test - run: pnpm test + run: pnpm run test \ No newline at end of file