Skip to content

Commit

Permalink
Cache node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Dec 11, 2024
1 parent 9f5d4b5 commit d74b626
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
key: test-repositories-${{ runner.os }}-${{ github.run_id }}
restore-keys: test-repositories-${{ runner.os }}

- name: Cache node_modules
uses: actions/cache@v4
with:
path: start-client/node_modules
key: node-modules-${{ hashFiles('start-client/yarn.lock') }}

- name: Build with Maven
env:
START_SPRING_IO_TMPDIR: /tmp/start-spring-io-cache-2024-12-11
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
distribution: 'liberica'
cache: 'maven'

- name: Cache node_modules
uses: actions/cache@v4
with:
path: start-client/node_modules
key: node-modules-${{ hashFiles('start-client/yarn.lock') }}

- name: Cache Maven/Gradle repositories for tests
uses: actions/cache@v4
with:
Expand Down

0 comments on commit d74b626

Please sign in to comment.