From 6fd71867db62f2e5493acf84a4157d1cd93e41d8 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Mon, 14 Oct 2024 22:59:56 +0200 Subject: [PATCH] Upgrade actions/cache Version --- .github/workflows/e2e.yaml | 10 ++++++++++ .github/workflows/pull-request.yaml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 92270a0..8550ece 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -15,6 +15,16 @@ jobs: with: node-version: "20" + - name: Cache node modules + uses: actions/cache@v4 + with: + path: | + node_modules + ~/.cache/yarn + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: E2E Test run: yarn && yarn test e2e env: diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 3fbe2b1..57bf318 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -18,7 +18,7 @@ jobs: node-version: "20" - name: Cache node modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | node_modules