Skip to content

Commit 60c8af3

Browse files
committed
Add sanity tests
Signed-off-by: Amal Thundiyil <[email protected]>
1 parent e791fad commit 60c8af3

File tree

4 files changed

+283
-0
lines changed

4 files changed

+283
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
name: Test CSI
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # actions/setup-go@v4
21+
with:
22+
go-version: "1.20"
23+
24+
- name: Test binary
25+
run: |
26+
cd csi
27+
go test -v ./...

go.mod

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.20
55
require (
66
github.com/container-storage-interface/spec v1.8.0
77
github.com/kubernetes-csi/csi-lib-utils v0.13.0
8+
github.com/kubernetes-csi/csi-test/v4 v4.4.0
89
github.com/moby/sys/mountinfo v0.6.2
910
google.golang.org/grpc v1.55.0
1011
google.golang.org/protobuf v1.30.0
@@ -14,11 +15,20 @@ require (
1415
)
1516

1617
require (
18+
github.com/fsnotify/fsnotify v1.4.9 // indirect
1719
github.com/go-logr/logr v1.2.3 // indirect
1820
github.com/golang/protobuf v1.5.3 // indirect
21+
github.com/google/go-cmp v0.5.9 // indirect
22+
github.com/google/uuid v1.3.0 // indirect
23+
github.com/nxadm/tail v1.4.8 // indirect
24+
github.com/onsi/ginkgo v1.16.5 // indirect
25+
github.com/onsi/gomega v1.23.0 // indirect
1926
golang.org/x/net v0.8.0 // indirect
2027
golang.org/x/sys v0.6.0 // indirect
2128
golang.org/x/text v0.8.0 // indirect
2229
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
30+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
31+
gopkg.in/yaml.v2 v2.4.0 // indirect
32+
gopkg.in/yaml.v3 v3.0.1 // indirect
2333
k8s.io/utils v0.0.0-20221107191617-1a15be271d1d // indirect
2434
)

0 commit comments

Comments
 (0)