From 78f559887ed6a8a3b8e32b22d9c9e5667c9fcc40 Mon Sep 17 00:00:00 2001 From: Rafa Lopes Date: Tue, 18 Jun 2024 18:00:06 +0100 Subject: [PATCH] fix working directory for node_modules caching --- .github/workflows/lint.backend.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.backend.yml b/.github/workflows/lint.backend.yml index 6fb8214..76407c2 100644 --- a/.github/workflows/lint.backend.yml +++ b/.github/workflows/lint.backend.yml @@ -4,11 +4,13 @@ on: [push] jobs: lint: - working-directory: backend runs-on: ubuntu-latest strategy: matrix: node-version: [lts/*] + defaults: + run: + working-directory: ./backend steps: - uses: actions/checkout@v4 @@ -18,6 +20,7 @@ jobs: env: cache-name: cache-node-modules with: + working-directory: ./backend # npm cache files are stored in `~/.npm` on Linux/macOS path: ~/.npm key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}