Skip to content

Commit

Permalink
fix working directory for node_modules caching
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa-lopes-pt committed Jun 18, 2024
1 parent 16fc3f5 commit 78f5598
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/lint.backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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') }}
Expand Down

0 comments on commit 78f5598

Please sign in to comment.