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 7
7
cache-key :
8
8
description : ' Cache key for storing client'
9
9
default : conformance-client-latest
10
+ cache-path :
11
+ description : ' Filepath where the client is installed'
12
+ default : ~/go/bin/client
10
13
runs :
11
14
using : " composite"
12
15
steps :
17
20
- name : Install client
18
21
run : go install github.com/GoogleCloudPlatform/functions-framework-conformance/client@${{ inputs.client-version }}
19
22
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
20
27
- name : Cache client
21
28
uses : actions/cache@v3
22
29
with :
23
- path : ~/go/bin/client
30
+ path : ${{ inputs.cache-path }}
24
31
key : ${{ inputs.cache-key }}
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ jobs:
109
109
uses : ./.github/actions/client/install
110
110
with :
111
111
client-version : ${{ env.CLIENT_VERSION }}
112
+ cache-path : ~/go/bin/client
112
113
cache-key : ${{ steps.set-cached-client-version.outputs.key }}
113
114
114
115
run-buildpack-integration-test :
You can’t perform that action at this time.
0 commit comments