From cefec12c3a2a6e68af576b9f9681c9571c7489a6 Mon Sep 17 00:00:00 2001 From: zer0dot Date: Sat, 11 May 2024 02:00:20 +0800 Subject: [PATCH] misc: Update CI to install dependencies with pnpm --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1bf9412d..7fc4970e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -73,6 +73,20 @@ jobs: - name: Install forge dependencies run: forge install + - name: "Install Pnpm" + uses: "pnpm/action-setup@v2" + with: + version: "8" + + # - name: "Install Node.js" + # uses: "actions/setup-node@v3" + # with: + # cache: "pnpm" + # node-version: "lts/*" + + - name: "Install Node.js dependencies" + run: "pnpm install" + - name: Build project run: forge build --sizes @@ -94,6 +108,20 @@ jobs: - name: Install forge dependencies run: forge install + - name: "Install Pnpm" + uses: "pnpm/action-setup@v2" + with: + version: "8" + + # - name: "Install Node.js" + # uses: "actions/setup-node@v3" + # with: + # cache: "pnpm" + # node-version: "lts/*" + + - name: "Install Node.js dependencies" + run: "pnpm install" + - name: Build project run: FOUNDRY_PROFILE=lite forge build