From e800c5311c4dc490aae1ddf4ebdc6d6dd162eb47 Mon Sep 17 00:00:00 2001 From: Rafael Correa Date: Sun, 21 Jul 2024 01:55:13 -0300 Subject: [PATCH] added caching for dependencies --- .github/workflows/pull_request.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 0f92a67..d0fc8b9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -41,6 +41,14 @@ jobs: key: ${{ runner.os }}-turbo-${{ github.sha }} restore-keys: | ${{ runner.os }}-turbo- + + - name: Cache packages + uses: actions/cache@v4 + with: + path: node_modules + key: ${{ runner.os }}-packages-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-packages- - uses: oven-sh/setup-bun@v1 @@ -63,6 +71,14 @@ jobs: restore-keys: | ${{ runner.os }}-turbo- + - name: Cache packages + uses: actions/cache@v4 + with: + path: node_modules + key: ${{ runner.os }}-packages-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-packages- + - uses: oven-sh/setup-bun@v1 - name: Verify code quality @@ -83,6 +99,14 @@ jobs: key: ${{ runner.os }}-turbo-${{ github.sha }} restore-keys: | ${{ runner.os }}-turbo- + + - name: Cache packages + uses: actions/cache@v4 + with: + path: node_modules + key: ${{ runner.os }}-packages-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-packages- - uses: oven-sh/setup-bun@v1