@@ -17,16 +17,23 @@ jobs:
17
17
uses : ruby/setup-ruby@v1
18
18
with :
19
19
bundler-cache : true
20
+ ruby-version : 2.6
20
21
21
22
- name : Install dependencies
22
23
run : |
23
- ci_scripts/install_dep.sh
24
+ sudo ci_scripts/install_dep.sh
24
25
25
26
- name : Builder
26
27
run : |
27
28
rake build -t -v
28
29
cp -R pkg /tmp
29
30
31
+ - name : Cache pkg
32
+ uses : actions/cache@v1
33
+ with :
34
+ path : /tmp
35
+ key : ${{ runner.os }}-build
36
+
30
37
unit-test :
31
38
runs-on : ubuntu-latest
32
39
needs :
@@ -37,12 +44,14 @@ jobs:
37
44
38
45
- name : Install dependencies
39
46
run : |
40
- ci_scripts/install_dep.sh
47
+ sudo ci_scripts/install_dep.sh
41
48
42
- - name : Run unit tests
43
- uses : actions/cache@v2
49
+ - uses : actions/cache@v2
44
50
with :
45
51
path : /tmp
52
+ key : ${{ runner.os }}-build
53
+
54
+ - name : Run unit tests
46
55
run : |
47
56
bundle exec rake test -t -v
48
57
68
77
69
78
- name : Build kube-objects image
70
79
run : |
71
- source docker/build.sh $GITHUB_RUN_ID
80
+ sed -i 's/VERSION=$VERSION -t splunk\/kube-objects:$TAG .\/docker/VERSION=$VERSION -t kube-objects:$TAG .\/docker/' docker/build.sh
81
+ sudo docker/build.sh $GITHUB_RUN_ID
82
+ docker image ls
72
83
73
84
- name : Setup Minikube
74
85
run : |
@@ -126,10 +137,8 @@ jobs:
126
137
ci_scripts/deploy_connector.sh
127
138
128
139
- name : Deploy log generator
129
- uses : actions/cache@v1
130
- with :
131
- path : /opt/splunk-connect-for-kubernetes
132
140
run : |
141
+ cd /opt/splunk-connect-for-kubernetes
133
142
kubectl apply -f test/test_setup.yaml
134
143
sleep 60
135
144
@@ -138,10 +147,10 @@ jobs:
138
147
python-version : 3.7
139
148
140
149
- name : Run functional tests
141
- uses : actions/cache@v1
142
- with :
143
- path : /opt/splunk-connect-for-kubernetes
144
150
run : |
151
+ echo "check the pods"
152
+ kubectl get pods -A
153
+ cd /opt/splunk-connect-for-kubernetes
145
154
kubectl get nodes
146
155
export PYTHONWARNINGS="ignore:Unverified HTTPS request"
147
156
export CI_SPLUNK_HOST=$(kubectl get pod splunk --template={{.status.podIP}})
@@ -154,7 +163,3 @@ jobs:
154
163
--splunk-user admin \
155
164
--splunk-password $CI_SPLUNK_PASSWORD \
156
165
-p no:warnings -s
157
-
158
-
159
-
160
-
0 commit comments