1
1
name : Kubernetes-sigs/krew CI
2
- on :
2
+ on :
3
3
push :
4
- branches :
4
+ branches :
5
5
- ' *'
6
- tags :
6
+ tags :
7
7
- ' v*.*.*'
8
8
pull_request :
9
- branches :
9
+ branches :
10
10
- ' *'
11
11
12
12
jobs :
@@ -23,47 +23,47 @@ jobs:
23
23
24
24
- name : Check out code into the Go module directory
25
25
uses : actions/checkout@v2
26
-
27
- - name : Add GOPATH
26
+
27
+ - name : Add GOPATH/bin to PATH
28
28
run : echo "::add-path::$(go env GOPATH)/bin"
29
-
29
+
30
30
- name : Install dependencies
31
31
run : go mod download
32
-
32
+
33
33
- name : Install gox
34
34
run : hack/install-gox.sh
35
-
36
- - name : Verify code quality
35
+
36
+ - name : Ensure go.mod is already tidied
37
37
run : go mod tidy && git diff --no-patch --exit-code
38
-
38
+
39
39
- name : Verify code patterns
40
40
run : hack/verify-code-patterns.sh
41
-
41
+
42
42
- name : Verify boilerplate
43
43
run : hack/verify-boilerplate.sh
44
-
44
+
45
45
- name : Run code lint
46
46
run : hack/run-lint.sh
47
-
47
+
48
48
- name : Run unit tests
49
49
run : go test -short -coverprofile=coverage.txt -covermode=atomic ./...
50
-
50
+
51
51
- name : Make binaries && verify krew installation
52
52
run : hack/make-all.sh
53
-
53
+
54
54
- name : Ensure kubectl installed
55
55
run : hack/ensure-kubectl-installed.sh
56
-
56
+
57
57
- name : Verify installation
58
58
run : hack/verify-installation.sh
59
-
59
+
60
60
- name : Run integration tests
61
61
run : hack/run-integration-tests.sh
62
-
63
- - name : Receipts upgrade migrations
62
+
63
+ - name : Verify receipt migration from v0.2.x to v0.3.x
64
64
run : hack/verify-receipts-upgrade-migration.sh
65
65
66
- - name : Create release
66
+ - name : Create a new release
67
67
if : contains(github.ref, 'tags')
68
68
id : create_release
69
69
75
75
draft : false
76
76
prerelease : false
77
77
78
- - name : Upload binaries to release
78
+ - name : Upload binaries to the new release
79
79
if : contains(github.ref, 'tags')
80
80
uses : svenstaro/upload-release-action@v1-release
81
81
with :
84
84
tag : ${{ github.ref }}
85
85
overwrite : true
86
86
file_glob : true
87
-
88
-
89
-
0 commit comments