From fde441bdf9387bd033cb6fcd97f124f70d54502b Mon Sep 17 00:00:00 2001 From: Evans Date: Tue, 5 Mar 2024 10:41:58 +0800 Subject: [PATCH] :construction_worker: Update ci.yml --- .github/workflows/ci.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abda849..a3897be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,16 +20,20 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: 'npm' - - name: Setup pnpm - uses: pnpm/action-setup@v3.0.0 - with: - run_install: pnpm install - - run: pnpm test + cache: 'pnpm' + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Run tests + run: pnpm test env: MOONSHOT_API_KEY: ${{ secrets.MOONSHOT_API_KEY }}