From ecca45c7cab6b7974de922eb252d12c39f596ec0 Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Sat, 15 Jun 2024 12:03:31 -0800 Subject: [PATCH] use corepack --- .gitea/workflows/tests.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 1944134..9dd73e7 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -12,13 +12,20 @@ jobs: runs-on: ubuntu-latest environment: docker steps: - - uses: actions/checkout@v3 - name: Check out code + - name: Check out code + uses: actions/checkout@v3 - - uses: actions/setup-node@v4 - name: Test the code + - name: Enable Corepack + run: corepack enable + + - name: Setup node + uses: actions/setup-node@v4 with: node-version: '20.x' + cache: 'pnpm' - - run: pnpm install --recursive - - run: pnpm test --filter scout --filter link2cid \ No newline at end of file + - name: Test scout + run: pnpm install --filter scout + + - name: Test link2cid + run: pnpm test --filter link2cid \ No newline at end of file