Skip to content

Commit

Permalink
Merge pull request #3343 from NCI-Agency/renovate/actions-cache-2.x
Browse files Browse the repository at this point in the history
Update actions/cache action to v2
  • Loading branch information
gjvoosten committed Dec 10, 2020
2 parents 4d7dfc1 + 953abd5 commit 7187f21
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
java-version: 1.8
- run: echo "CHROMEDRIVER_FILEPATH=$CHROMEWEBDRIVER/chromedriver" >> $GITHUB_ENV
- name: cache gradle
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: cache node
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ./client/node_modules/.cache
key: ${{ runner.os }}-node
Expand All @@ -49,7 +49,7 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(./gradlew -q yarn_cache_dir)"
- name: cache yarn
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('client/yarn.lock') }}
Expand Down Expand Up @@ -110,13 +110,15 @@ jobs:
with:
java-version: 1.8
- run: echo "CHROMEDRIVER_FILEPATH=$CHROMEWEBDRIVER/chromedriver" >> $GITHUB_ENV
- uses: actions/cache@v1
- name: cache gradle
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/cache@v1
- name: cache node
uses: actions/cache@v2
with:
path: ./client/node_modules/.cache
key: ${{ runner.os }}-node
Expand All @@ -126,7 +128,8 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(./gradlew -q yarn_cache_dir)"
- uses: actions/cache@v1
- name: cache yarn
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('client/yarn.lock') }}
Expand Down

0 comments on commit 7187f21

Please sign in to comment.