From 5b1b1a87c4678d1b3fb5073df8d5fd17fda2f966 Mon Sep 17 00:00:00 2001 From: Claudio Wunder Date: Tue, 19 Sep 2023 12:23:27 +0200 Subject: [PATCH] meta: restore eslint cache --- .github/workflows/translations-pr.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/translations-pr.yml b/.github/workflows/translations-pr.yml index bb94df4bc13cd..1d04e46bcde72 100644 --- a/.github/workflows/translations-pr.yml +++ b/.github/workflows/translations-pr.yml @@ -52,6 +52,22 @@ jobs: - name: Git Checkout uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 + - name: Restore Lint Cache + uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 + with: + path: | + .eslintmdcache + .prettiercache + # We want to restore Turborepo Cache and ESlint and Prettier Cache + # The ESLint and Prettier cache's are useful to reduce the overall runtime of ESLint and Prettier + # as they will only run on files that have changed since the last cached run + # this might of course lead to certain files not being checked against the linter, but the chances + # of such situation from happening are very slim as the checksums of both files would need to match + key: cache-lint-${{ hashFiles('package-lock.json') }}- + restore-keys: | + cache-lint-${{ hashFiles('package-lock.json') }}- + cache-lint- + - name: Set up Node.js uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: