From 4f1492ee429f43d7fe2cecde841ca2bfd081b1b2 Mon Sep 17 00:00:00 2001 From: Matias Poblete <86752543+MattPoblete@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:40:14 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9A=97=EF=B8=8FAdds=20cache=20to=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/run-tests.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c484d09d..c11c1a6c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,6 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 + with: + path: ~/.yarn/cache + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node- - name: Set up Node.js uses: actions/setup-node@v4.0.2 @@ -40,6 +45,13 @@ jobs: needs: build steps: - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@v4.1.1 + - uses: actions/cache@v3 + with: + path: ~/.yarn/cache + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node- - name: Set up Node.js uses: actions/setup-node@v4.0.2 @@ -53,6 +65,12 @@ jobs: needs: deploy-app steps: - uses: actions/checkout@v4.1.1 + - uses: actions/cache@v3 + with: + path: ~/.yarn/cache + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node- - name: Set up Node.js uses: actions/setup-node@v4.0.2