From 8954cee6345b045a6dabab7f360317e39f8ac226 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Mon, 21 Oct 2024 10:02:12 +0200 Subject: [PATCH] Add yarn cache --- .github/workflows/tests.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8a1cb00..27a2c44 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,18 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache dependencies + id: yarn-cache + uses: actions/cache@v3 + with: + path: | + **/node_modules + .yarn/install-state.gz + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }} + restore-keys: | + ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + ${{ runner.os }}-yarn- + - name: Install dependencies run: yarn