From 135567493ddeb7e5c8525b991d0798fa79bb8023 Mon Sep 17 00:00:00 2001 From: Alex <8125011+alex-kinokon@users.noreply.github.com> Date: Fri, 15 Mar 2024 20:07:30 -0400 Subject: [PATCH] Update github actions --- .github/workflows/test.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 57cd836..d1566d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,12 +17,29 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: yarn cache - uses: c-hive/gha-yarn-cache@v2 + - uses: pnpm/action-setup@v3 + name: Install pnpm + with: + version: 8 + run_install: false + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - - run: yarn install --frozen-lockfile + - name: Install dependencies + run: pnpm install - name: Build - run: yarn build + run: pnpm run build - - run: yarn test + - run: pnpm run test