From 75d1704e48f01a46585822484e6ee8c329b7f233 Mon Sep 17 00:00:00 2001 From: Milan Gruner Date: Mon, 22 Apr 2024 13:54:33 +0200 Subject: [PATCH] fix(ci): set default working directory to app and cache node dependencies --- .github/workflows/playwright.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 30b1f6f18..59a700c19 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -8,13 +8,16 @@ jobs: test: timeout-minutes: 60 runs-on: ubuntu-latest + defaults: + run: + working-directory: ./app steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: lts/* - - name: Switch into app directory - run: cd app/ + node-version: 20 + cache: "npm" + cache-dependency-path: app/package-lock.json - name: Install dependencies run: npm ci - name: Install Playwright Browsers