Skip to content

Commit

Permalink
⚗️Adds cache to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Sep 10, 2024
1 parent 164f60c commit 4f1492e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
path: ~/.yarn/cache
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Set up Node.js
uses: actions/[email protected]
Expand Down Expand Up @@ -40,6 +45,13 @@ jobs:
needs: build
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- 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/[email protected]
Expand All @@ -53,6 +65,12 @@ jobs:
needs: deploy-app
steps:
- uses: actions/[email protected]
- 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/[email protected]
Expand Down

0 comments on commit 4f1492e

Please sign in to comment.