From 57ca9b0bf10da233a1a1fdfe761232f20069c620 Mon Sep 17 00:00:00 2001 From: Niklas Widmann Date: Sat, 27 Jul 2024 11:15:21 +0200 Subject: [PATCH] update CI --- .github/workflows/test.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbdaaea..3f067df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,31 +12,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 16 - - name: Install pnpm - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v4 with: - version: 9.6.0 + version: 9 run_install: false - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - uses: actions/cache@v3 - name: Setup pnpm cache + - name: Install Node.js + uses: actions/setup-node@v4 with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('web/**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + node-version: 22 + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile --strict-peer-dependencies