File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,35 @@ jobs:
105
105
fi
106
106
shell : bash
107
107
108
- - name : ' Drive D: should not have Go installation, cache: ${{ matrix.cache}}'
108
+ - name : ' Drive D: should not have Go installation, cache: ${{ matrix.cache }}'
109
109
run : |
110
110
if [ -e 'D:\hostedtoolcache\windows\go\${{ needs.find-default-go.outputs.version }}\x64' ];then
111
111
echo 'D:\hostedtoolcache\windows\go\${{ needs.find-default-go.outputs.version }}\x64 should not exist for hosted version of go';
112
112
exit 1
113
113
fi
114
114
shell : bash
115
+
116
+ hostedtoolcache :
117
+ name : ' Validate if hostedtoolcache works as expected'
118
+ runs-on : windows-latest
119
+ strategy :
120
+ matrix :
121
+ cache : [false]
122
+ go : [1.20.1]
123
+ steps :
124
+ - uses : actions/checkout@v3
125
+
126
+ - name : ' Setup ${{ matrix.go }}, cache: ${{ matrix.cache }}'
127
+ uses : ./
128
+ with :
129
+ go-version : ${{ matrix.go }}
130
+ cache : ${{ matrix.cache }}
131
+
132
+ - name : ' Setup ${{ matrix.go }}, cache: ${{ matrix.cache }} (from hostedtoolcache)'
133
+ uses : ./
134
+ with :
135
+ go-version : ${{ matrix.go }}
136
+ cache : ${{ matrix.cache }}
137
+
138
+
139
+
You can’t perform that action at this time.
0 commit comments