Skip to content

Commit

Permalink
BAU update cache action version for shared workflows (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsteers authored Feb 4, 2025
1 parent b978bf4 commit ca36a0c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_run-app-as-provider-contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
java-version: ${{ inputs.java_version }}
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/_run-java-tests-and-publish-pacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ jobs:
java-version: ${{ inputs.java_version }}
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache pacts directory
if: ${{ inputs.publish_pacts }}
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: target/pacts
key: ${{ runner.os }}-build-id-${{ github.head_ref }}-${{ github.sha }}-pacts
Expand Down Expand Up @@ -102,13 +102,13 @@ jobs:
java-version: ${{ inputs.java_version }}
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache pacts directory
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: target/pacts
key: ${{ runner.os }}-build-id-${{ github.head_ref }}-${{ github.sha }}-pacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_run-node-cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
node-version-file: ".nvmrc"
- name: Cache build directories
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: |
node_modules
Expand All @@ -35,7 +35,7 @@ jobs:
id: parse-cypress-version
run: echo "CYPRESS_VERSION=$(jq -r '.devDependencies.cypress' package.json)" >> $GITHUB_OUTPUT
- name: Cache Cypress
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ steps.parse-cypress-version.outputs.CYPRESS_VERSION }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_run-node-install-and-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
node-version-file: ".nvmrc"
- name: Cache build directories
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: |
node_modules
Expand All @@ -39,7 +39,7 @@ jobs:
dist
key: ${{ runner.os }}-build-id-${{ github.head_ref }}-${{ github.sha }}
- name: Cache NPM packages
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -50,7 +50,7 @@ jobs:
run: echo "CYPRESS_VERSION=$(jq -r '.devDependencies.cypress' package.json)" >> $GITHUB_OUTPUT
- name: Cache Cypress
if: ${{ inputs.has_cypress_tests }}
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ steps.parse-cypress-version.outputs.CYPRESS_VERSION }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/_run-node-unit-tests-and-publish-pacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
node-version-file: ".nvmrc"
- name: Cache build directories
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: |
node_modules
Expand All @@ -42,7 +42,7 @@ jobs:
key: ${{ runner.os }}-build-id-${{ github.head_ref }}-${{ github.sha }}
- name: Cache pacts directory
if: ${{ inputs.publish_pacts }}
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: pacts
key: ${{ runner.os }}-build-id-${{ github.head_ref }}-${{ github.sha }}-pacts
Expand All @@ -62,7 +62,7 @@ jobs:
with:
node-version-file: ".nvmrc"
- name: Cache build directories
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: |
node_modules
Expand All @@ -71,7 +71,7 @@ jobs:
dist
key: ${{ runner.os }}-build-id-${{ github.head_ref }}-${{ github.sha }}
- name: Cache pacts directory
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: pacts
key: ${{ runner.os }}-build-id-${{ github.head_ref }}-${{ github.sha }}-pacts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
java-version: ${{ inputs.java_version }}
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down

0 comments on commit ca36a0c

Please sign in to comment.