You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/go.yml
+33-2Lines changed: 33 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,9 @@ jobs:
39
39
uses: actions/setup-go@v6
40
40
with:
41
41
go-version-file: go.work
42
+
cache: true
43
+
cache-dependency-path: |
44
+
**/go.sum
42
45
id: go
43
46
- name: sync go modules
44
47
run: make workspace-sync
@@ -59,6 +62,9 @@ jobs:
59
62
uses: actions/setup-go@v6
60
63
with:
61
64
go-version-file: go.work
65
+
cache: true
66
+
cache-dependency-path: |
67
+
**/go.sum
62
68
id: go
63
69
- name: Lint
64
70
run: make lint
@@ -77,6 +83,9 @@ jobs:
77
83
uses: actions/setup-go@v6
78
84
with:
79
85
go-version-file: go.work
86
+
cache: true
87
+
cache-dependency-path: |
88
+
**/go.sum
80
89
id: go
81
90
- name: Test all modules
82
91
run: make test-unit-non-plugin
@@ -95,6 +104,9 @@ jobs:
95
104
uses: actions/setup-go@v6
96
105
with:
97
106
go-version-file: go.work
107
+
cache: true
108
+
cache-dependency-path: |
109
+
**/go.sum
98
110
id: go
99
111
- name: Test all modules
100
112
run: make test-unit-non-plugin
@@ -113,8 +125,27 @@ jobs:
113
125
uses: actions/setup-go@v6
114
126
with:
115
127
go-version-file: go.work
128
+
cache: true
129
+
cache-dependency-path: |
130
+
**/go.sum
116
131
id: go
117
-
- name: Test all modules
118
-
run: make test-unit-non-plugin
132
+
## Windows has significant differences from POSIX-compliant OS.
133
+
## so it only runs tests for the modules that are released.
134
+
- name: Test kyaml
135
+
run: make test
136
+
working-directory: ./kyaml
137
+
- name: Test cmd/config
138
+
run: make test
139
+
working-directory: ./cmd/config
140
+
env:
141
+
KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
142
+
- name: Test api
143
+
run: go test -cover ./... -ldflags "-X sigs.k8s.io/kustomize/api/provenance.buildDate=2023-01-31T23:38:41Z -X sigs.k8s.io/kustomize/api/provenance.version=(test)"
144
+
working-directory: ./api
145
+
env:
146
+
KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
147
+
- name: Test kustomize
148
+
run: go test -cover ./...
149
+
working-directory: ./kustomize
119
150
env:
120
151
KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
0 commit comments