2121 - ' v*'
2222 paths-ignore :
2323 - ' deploy/helm/**'
24+ - ' docs/**'
2425 - ' MAINTAINERS'
2526 - ' *.md'
2627 - ' LICENSE'
@@ -53,14 +54,58 @@ jobs:
5354
5455 - name : Upload Coverage Report
5556 uses : codecov/codecov-action@v1
57+
58+ sanity-test :
59+ # to ignore builds on release
60+ if : ${{ (github.event.ref_type != 'tag') }}
61+ runs-on : ubuntu-latest
62+ needs : ['lint', 'unit-test']
63+ steps :
64+ - name : Checkout
65+ uses : actions/checkout@v2
5666
67+ - name : Set up Go 1.15
68+ uses : actions/setup-go@v2
69+ with :
70+ go-version : 1.15.15
71+
72+ - name : Build provisioner-nfs image
73+ run : make provisioner-nfs-image
74+
75+ - name : Build nfs-server-alpine image
76+ run : make nfs-server-image
77+
78+ - name : Install NFS utils
79+ run : |
80+ sudo apt-get update && sudo apt-get install -y nfs-common
81+
82+ - name : Setup Minikube-Kubernetes
83+ 84+ with :
85+ minikube version : v1.24.0
86+ kubernetes version : v1.20.13
87+ start args : ' --install-addons=false'
88+
89+ - name : Installation
90+ run : |
91+ ./tests/install-localpv.sh
92+ ./tests/install-nfs-provisioner.sh
93+
94+ - name : Running sanity tests
95+ run : make sanity-test
96+
5797 provisioner-nfs :
5898 runs-on : ubuntu-latest
5999 needs : ['lint', 'unit-test']
60100 steps :
61101 - name : Checkout
62102 uses : actions/checkout@v2
63103
104+ - name : Set up Go 1.15
105+ uses : actions/setup-go@v2
106+ with :
107+ go-version : 1.15.15
108+
64109 - name : Set Image Org
65110 # sets the default IMAGE_ORG to openebs
66111 run : |
@@ -225,39 +270,6 @@ jobs:
225270 tags : |
226271 ${{ steps.docker_meta.outputs.tags }}
227272
228- sanity-test :
229- # to ignore builds on release
230- if : ${{ (github.event.ref_type != 'tag') }}
231- runs-on : ubuntu-latest
232- needs : ['provisioner-nfs', 'nfs-server']
233- steps :
234- - name : Checkout
235- uses : actions/checkout@v2
236-
237- - name : Set up Go 1.15
238- uses : actions/setup-go@v2
239- with :
240- go-version : 1.15
241-
242- - name : Setup Minikube-Kubernetes
243- 244- with :
245- minikube version : v1.16.0
246- kubernetes version : v1.20.1
247-
248- - name : Install NFS utils
249- run : |
250- sudo apt-get update
251- sudo apt install nfs-common
252-
253- - name : Installation
254- run : |
255- ./tests/install-localpv.sh
256- ./tests/install-nfs-provisioner.sh
257-
258- - name : Running sanity tests
259- run : make sanity-test
260-
261273 nfs-e2e :
262274 runs-on : ubuntu-latest
263275 steps :
@@ -283,4 +295,4 @@ jobs:
283295 load : false
284296 platforms : linux/amd64
285297 tags : |
286- ${{ env.IMAGE_ORG }}/nfs-e2e:ci
298+ ${{ env.IMAGE_ORG }}/nfs-e2e:ci
0 commit comments