From 032dfa486ced6abddebbe1e3cb650a8b7c2034fe Mon Sep 17 00:00:00 2001 From: zhangzhixiong <751069244@qq.com> Date: Thu, 28 Mar 2024 20:36:37 +0800 Subject: [PATCH] chore: fix ci --- .github/workflows/ci.yml | 37 ++----------------------------------- 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 163cfb5..99cfb61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,15 +14,10 @@ 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: 16.x - cache: pnpm + node-version: 20.x - name: Setup run: npm i -g @antfu/ni @@ -33,49 +28,21 @@ jobs: - name: Lint run: nr lint - typecheck: - 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: 16.x - cache: pnpm - - - name: Setup - run: npm i -g @antfu/ni - - - name: Install - run: nci - - - name: Typecheck - run: nr typecheck - test: runs-on: ${{ matrix.os }} strategy: matrix: - node: [16.x] + node: [18.x] os: [ubuntu-latest, windows-latest, macos-latest] fail-fast: false steps: - uses: actions/checkout@v3 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - - name: Set node ${{ matrix.node }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - cache: pnpm - name: Setup run: npm i -g @antfu/ni