From 221184acc7d5bdfcbc05071b30821ee7fb1ef0d2 Mon Sep 17 00:00:00 2001 From: Guilherme Henrique Crozariol Date: Tue, 31 Oct 2023 12:41:00 -0300 Subject: [PATCH] Fix e2e tests workflow to rely on pnpm instead of npm --- .github/workflows/run-e2e-tests.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-e2e-tests.yml b/.github/workflows/run-e2e-tests.yml index 59d9e80..73182ed 100644 --- a/.github/workflows/run-e2e-tests.yml +++ b/.github/workflows/run-e2e-tests.yml @@ -8,14 +8,27 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-node@v3 + - uses: pnpm/action-setup@v2 + name: Install pnpm with: - node-version: 18 - cache: 'npm' + version: 8 + run_install: false + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - run: npm ci + - 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- + + - uses: actions/checkout@v3 + - run: pnpm i - run: npm run test:e2e env: