From d74b626e0ba55cfd3b2efb45eaac99e3b999e2be Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Wed, 11 Dec 2024 13:34:14 +0100 Subject: [PATCH] Cache node_modules --- .github/workflows/build-and-deploy.yml | 6 ++++++ .github/workflows/verification.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 19d720f6c3..367e7fa8cf 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -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 diff --git a/.github/workflows/verification.yml b/.github/workflows/verification.yml index cceb291f72..7f50db9ca4 100644 --- a/.github/workflows/verification.yml +++ b/.github/workflows/verification.yml @@ -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: