From 30bf9937418c71940e0b646e05c313ef29641193 Mon Sep 17 00:00:00 2001 From: Joery <44531907+Joery-M@users.noreply.github.com> Date: Mon, 22 Apr 2024 23:11:27 +0200 Subject: [PATCH] ci: Changed order of actions --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee26827c..3b06bdc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,9 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm-store- + - name: Install dependencies + run: pnpm install --ignore-scripts + - name: Get installed Playwright version run: echo "PLAYWRIGHT_VERSION=$(pnpm ls -r | grep playwright | sed 's/.* //')" >> $GITHUB_ENV @@ -52,16 +55,13 @@ jobs: id: playwright-cache with: path: '~/.cache/ms-playwright' - key: '${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}' + key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} restore-keys: | ${{ runner.os }}-playwright- - name: Install Playwright's dependencies if: steps.playwright-cache.outputs.cache-hit != 'true' - run: npx playwright install --with-deps - - - name: Install dependencies - run: pnpm install --ignore-scripts + run: pnpm exec playwright install --with-deps - name: Build Darkroom run: pnpm build:darkroom