Skip to content

Commit

Permalink
Refactored caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin19 committed Feb 11, 2024
1 parent 404818e commit 3b95006
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ jobs:
name: Checkout repository 🫠
- name: Setup Node
uses: actions/setup-node@v3
- uses: actions/cache@v3
id: npm-cache
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm test
build:
Expand All @@ -27,10 +25,8 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
- uses: actions/cache@v3
id: npm-cache
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run build

0 comments on commit 3b95006

Please sign in to comment.