Skip to content

Commit

Permalink
Added caching to workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin19 committed Feb 11, 2024
1 parent 426f728 commit d82d2eb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,28 @@ on:
jobs:
unit-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
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') }}
- run: npm ci
- run: npm test
build:
runs-on: ubuntu-latest

steps:
- 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') }}
- run: npm ci
- run: npm run build

0 comments on commit d82d2eb

Please sign in to comment.