@@ -35,11 +35,12 @@ jobs:
35
35
-executable -type f \
36
36
-exec cp {} ./test-binaries/ \;
37
37
38
- - name : set up test binaries to cache
39
- uses : actions/ cache@v2
38
+ - uses : actions/upload-artifact@v2
39
+ name : set up test binaries to cache
40
40
with :
41
- path : " ./test-binaries"
42
- key : test-binaries-${{ github.sha }}
41
+ name : test-binaries-${{ github.sha }}
42
+ path : ./test-binaries/
43
+ retention-days : 1
43
44
44
45
test :
45
46
runs-on : ubuntu-latest
@@ -48,10 +49,10 @@ jobs:
48
49
- uses : actions/checkout@master
49
50
50
51
- name : get test binaries from cache
51
- uses : actions/cache @v2
52
+ uses : actions/download-artifact @v2
52
53
with :
53
- path : " ./ test-binaries"
54
- key : test-binaries-${{ github.sha }}
54
+ name : test-binaries-${{ github.sha }}
55
+ path : ./ test-binaries/
55
56
56
57
- name : Launch postgres and min.io
57
58
run : |
69
70
run : |
70
71
for f in ./test-binaries/*; do
71
72
echo "running $f"
73
+ chmod +x $f # GH action artifacts don't handle permissions
72
74
$f || exit 1
73
75
done
74
76
@@ -83,10 +85,10 @@ jobs:
83
85
- uses : actions/checkout@master
84
86
85
87
- name : get test binaries from cache
86
- uses : actions/cache @v2
88
+ uses : actions/download-artifact @v2
87
89
with :
88
- path : " ./ test-binaries"
89
- key : test-binaries-${{ github.sha }}
90
+ name : test-binaries-${{ github.sha }}
91
+ path : ./ test-binaries/
90
92
91
93
- name : Launch postgres and min.io
92
94
run : |
@@ -106,6 +108,7 @@ jobs:
106
108
run : |
107
109
for f in ./test-binaries/*; do
108
110
echo "running $f"
111
+ chmod +x $f # GH action artifacts don't handle permissions
109
112
$f --ignored || exit 1
110
113
done
111
114
0 commit comments