Skip to content

Commit

Permalink
ci: cache yarn dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jGleitz committed Aug 30, 2020
1 parent 2ef8d38 commit c03763e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.gradle
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*') }}
path: |
~/.gradle
.yarn/cache
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*', 'yarn.lock') }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
Expand Down Expand Up @@ -52,10 +54,12 @@ jobs:
with:
fetch-depth: 0
- name: Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.gradle
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*') }}
path: |
~/.gradle
.yarn/cache
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*', 'yarn.lock') }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
Expand All @@ -76,10 +80,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.gradle
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*') }}
path: |
~/.gradle
.yarn/cache
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*', 'yarn.lock') }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.gradle
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*') }}
path: |
~/.gradle
.yarn/cache
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*', 'yarn.lock') }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
Expand Down Expand Up @@ -46,10 +48,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.gradle
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.kts') }}
path: |
~/.gradle
.yarn/cache
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.*', 'yarn.lock') }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
Expand Down

0 comments on commit c03763e

Please sign in to comment.