File tree Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Expand file tree Collapse file tree 3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 19
19
- uses : actions/checkout@v2
20
20
21
21
- name : Install dependencies
22
- run : sudo apt-get install -y wait-for-it
22
+ run : sudo apt-get update -qq && sudo apt-get install -y curl wait-for-it
23
+ - name : Restore cached binaries
24
+ id : cache-binaries-restore
25
+ uses : actions/cache/restore@v3
26
+ with :
27
+ path : .bin
28
+ key : ${{ runner.os }}-binaries
29
+ - name : Install MinIO Client
30
+ run : |
31
+ mkdir .bin || exit 0
32
+ cd .bin
33
+ curl --retry 6 --fail --silent --location --output mc.RELEASE.2023-06-19T19-31-19Z "https://dl.min.io/client/mc/release/linux-$(dpkg --print-architecture)/mc.RELEASE.2023-06-19T19-31-19Z"
34
+ curl --retry 6 --fail --silent --location "https://dl.min.io/client/mc/release/linux-$(dpkg --print-architecture)/mc.RELEASE.2023-06-19T19-31-19Z.sha256sum" | sha256sum --check -
35
+ mv mc.RELEASE.2023-06-19T19-31-19Z mc
36
+ chmod +x mc
37
+ - name : Save cached binaries
38
+ id : cache-binaries-save
39
+ uses : actions/cache/save@v3
40
+ with :
41
+ path : .bin
42
+ key : ${{ steps.cache-binaries-restore.outputs.cache-primary-key }}
23
43
- name : Run tests - latest njs version
24
44
run : ./test.sh --latest-njs --type oss
25
45
- name : Run tests - stable njs version
Original file line number Diff line number Diff line change @@ -110,3 +110,5 @@ modules.xml
110
110
test-settings. *
111
111
s3-requests.http
112
112
httpRequests /
113
+
114
+ .bin /
Original file line number Diff line number Diff line change @@ -143,7 +143,16 @@ if ! [ -x "${curl_cmd}" ]; then
143
143
exit ${no_dep_exit_code}
144
144
fi
145
145
146
- mc_cmd=" $( command -v mc) "
146
+ if command -v mc > /dev/null; then
147
+ mc_cmd=" $( command -v mc) "
148
+ elif [ -x " ${script_dir} /.bin/mc" ]; then
149
+ mc_cmd=" ${script_dir} /.bin/mc"
150
+ else
151
+ e " required dependency not found: mc not found in the path or not executable"
152
+ exit ${no_dep_exit_code}
153
+ fi
154
+ e " Using MinIO Client: ${mc_cmd} "
155
+
147
156
if ! [ -x " ${mc_cmd} " ]; then
148
157
e " required dependency not found: mc not found in the path or not executable"
149
158
exit ${no_dep_exit_code}
You can’t perform that action at this time.
0 commit comments