File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 77 cache-key :
88 description : ' Cache key for storing client'
99 default : conformance-client-latest
10+ cache-path :
11+ description : ' Filepath where the client is installed'
12+ default : ~/go/bin/client
1013runs :
1114 using : " composite"
1215 steps :
1720 - name : Install client
1821 run : go install github.com/GoogleCloudPlatform/functions-framework-conformance/client@${{ inputs.client-version }}
1922 shell : bash
23+ - name : Move client to cache-path
24+ # 'mv' fails if the src and dest path are the same, so move it to a temp first just in case
25+ run : mv ~/go/bin/client /tmp/client && mv /tmp/client ${{ inputs.cache-path }}
26+ shell : bash
2027 - name : Cache client
2128 uses : actions/cache@v3
2229 with :
23- path : ~/go/bin/client
30+ path : ${{ inputs.cache-path }}
2431 key : ${{ inputs.cache-key }}
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ jobs:
109109 uses : ./.github/actions/client/install
110110 with :
111111 client-version : ${{ env.CLIENT_VERSION }}
112+ cache-path : ~/go/bin/client
112113 cache-key : ${{ steps.set-cached-client-version.outputs.key }}
113114
114115 run-buildpack-integration-test :
You can’t perform that action at this time.
0 commit comments