@@ -10,93 +10,78 @@ permissions:
10
10
contents : read
11
11
12
12
jobs :
13
-
14
13
lint :
15
14
name : Lint
16
15
runs-on : [ubuntu-latest]
17
16
steps :
18
-
19
- - name : Set up Go 1.x
20
- uses : actions/setup-go@v3
21
- with :
22
- go-version : ' ^1.19.0'
23
- id : go
24
-
25
17
- name : Check out code into the Go module directory
26
18
uses : actions/checkout@v3
27
19
with :
28
20
fetch-depth : 0
29
-
21
+ - name : Set up Go 1.x
22
+ uses : actions/setup-go@v3
23
+ with :
24
+ go-version-file : go.work
25
+ id : go
30
26
- name : Lint
31
27
run : make lint
32
-
33
28
- name : Verify boilerplate
34
29
run : make check-license
35
30
36
31
test-linux :
37
32
name : Test Linux
38
33
runs-on : [ubuntu-latest]
39
34
steps :
40
-
41
- - name : Set up Go 1.x
42
- uses : actions/setup-go@v3
43
- with :
44
- go-version : ' ^1.19.0'
45
- id : go
46
-
47
- - name : Check out code into the Go module directory
48
- uses : actions/checkout@v3
49
-
50
- - name : Test all modules
51
- run : make test-unit-non-plugin
52
- env :
53
- KUSTOMIZE_DOCKER_E2E : true
35
+ - name : Check out code into the Go module directory
36
+ uses : actions/checkout@v3
37
+ - name : Set up Go 1.x
38
+ uses : actions/setup-go@v3
39
+ with :
40
+ go-version-file : go.work
41
+ id : go
42
+ - name : Test all modules
43
+ run : make test-unit-non-plugin
44
+ env :
45
+ KUSTOMIZE_DOCKER_E2E : true
54
46
55
47
test-macos :
56
48
name : Test MacOS
57
49
runs-on : [macos-latest]
58
50
steps :
59
-
60
- - name : Set up Go 1.x
61
- uses : actions/setup-go@v3
62
- with :
63
- go-version : ' ^1.19.0'
64
- id : go
65
-
66
- - name : Check out code into the Go module directory
67
- uses : actions/checkout@v3
68
-
69
- - name : Test all modules
70
- run : make test-unit-non-plugin
71
- env :
72
- KUSTOMIZE_DOCKER_E2E : false # docker not installed on mac
51
+ - name : Check out code into the Go module directory
52
+ uses : actions/checkout@v3
53
+ - name : Set up Go 1.x
54
+ uses : actions/setup-go@v3
55
+ with :
56
+ go-version-file : go.work
57
+ id : go
58
+ - name : Test all modules
59
+ run : make test-unit-non-plugin
60
+ env :
61
+ KUSTOMIZE_DOCKER_E2E : false # docker not installed on mac
73
62
74
63
test-windows :
75
64
name : Test Windows
76
65
runs-on : [windows-latest]
77
66
steps :
78
-
79
- - name : Set up Go 1.x
80
- uses : actions/setup-go@v3
81
- with :
82
- go-version : ' ^1.19.0'
83
- id : go
84
-
85
- - name : Check out code into the Go module directory
86
- uses : actions/checkout@v3
87
-
88
- - name : Test kyaml
89
- run : go test -cover ./...
90
- working-directory : ./kyaml
91
-
92
- - name : Test cmd/config
93
- run : go test -cover ./...
94
- working-directory : ./cmd/config
95
- env :
96
- KUSTOMIZE_DOCKER_E2E : false # docker on windows not working well yet
97
-
98
- # TODO (#4001): replace specific modules above with this once Windows tests are passing.
99
- # - name: Test all modules
100
- # run: make test-unit-non-plugin
101
- # env:
102
- # KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
67
+ - name : Check out code into the Go module directory
68
+ uses : actions/checkout@v3
69
+ - name : Set up Go 1.x
70
+ uses : actions/setup-go@v3
71
+ with :
72
+ go-version-file : go.work
73
+ id : go
74
+ - name : Test kyaml
75
+ run : go test -cover ./...
76
+ working-directory : ./kyaml
77
+ - name : Test cmd/config
78
+ run : go test -cover ./...
79
+ working-directory : ./cmd/config
80
+ env :
81
+ KUSTOMIZE_DOCKER_E2E : false # docker on windows not working well yet
82
+
83
+ # TODO (#4001): replace specific modules above with this once Windows tests are passing.
84
+ # - name: Test all modules
85
+ # run: make test-unit-non-plugin
86
+ # env:
87
+ # KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
0 commit comments