Skip to content

Commit

Permalink
Cache npm dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed May 22, 2023
1 parent 06e9045 commit 6d78dea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/repl-artefacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build artefacts
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests with coverage
Expand All @@ -46,6 +47,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Lint
Expand All @@ -71,6 +73,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests
Expand All @@ -92,6 +95,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests
Expand All @@ -113,6 +117,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests
Expand Down

0 comments on commit 6d78dea

Please sign in to comment.