File tree Expand file tree Collapse file tree 23 files changed +706
-1
lines changed
cronjob-tutorial/testdata/project/.github/workflows
getting-started/testdata/project/.github/workflows
multiversion-tutorial/testdata/project/.github/workflows
pkg/plugins/golang/v4/scaffolds
internal/templates/github
project-v4-multigroup-with-plugins/.github/workflows
project-v4-with-plugins/.github/workflows
project-v4/.github/workflows Expand file tree Collapse file tree 23 files changed +706
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ lint :
9+ name : Run on Ubuntu
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Clone the code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : ' ~1.22'
19+
20+ - name : Run linter
21+ uses : golangci/golangci-lint-action@v6
22+ with :
23+ version : v1.59
Original file line number Diff line number Diff line change 1+ name : E2E Tests
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ test-e2e :
9+ name : Run on Ubuntu
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Clone the code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : ' ~1.22'
19+
20+ - name : Install the latest version of kind
21+ run : |
22+ curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
23+ chmod +x ./kind
24+ sudo mv ./kind /usr/local/bin/kind
25+
26+ - name : Verify kind installation
27+ run : kind version
28+
29+ - name : Create kind cluster
30+ run : kind create cluster
31+
32+ - name : Running Test e2e
33+ run : |
34+ go mod tidy
35+ make test-e2e
Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ test :
9+ name : Run on Ubuntu
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Clone the code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : ' ~1.22'
19+
20+ - name : Running Tests
21+ run : |
22+ go mod tidy
23+ make test
Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ lint :
9+ name : Run on Ubuntu
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Clone the code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : ' ~1.22'
19+
20+ - name : Run linter
21+ uses : golangci/golangci-lint-action@v6
22+ with :
23+ version : v1.59
Original file line number Diff line number Diff line change 1+ name : E2E Tests
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ test-e2e :
9+ name : Run on Ubuntu
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Clone the code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : ' ~1.22'
19+
20+ - name : Install the latest version of kind
21+ run : |
22+ curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
23+ chmod +x ./kind
24+ sudo mv ./kind /usr/local/bin/kind
25+
26+ - name : Verify kind installation
27+ run : kind version
28+
29+ - name : Create kind cluster
30+ run : kind create cluster
31+
32+ - name : Running Test e2e
33+ run : |
34+ go mod tidy
35+ make test-e2e
Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ test :
9+ name : Run on Ubuntu
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Clone the code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : ' ~1.22'
19+
20+ - name : Running Tests
21+ run : |
22+ go mod tidy
23+ make test
Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ lint :
9+ name : Run on Ubuntu
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Clone the code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : ' ~1.22'
19+
20+ - name : Run linter
21+ uses : golangci/golangci-lint-action@v6
22+ with :
23+ version : v1.59
Original file line number Diff line number Diff line change 1+ name : E2E Tests
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ test-e2e :
9+ name : Run on Ubuntu
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Clone the code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : ' ~1.22'
19+
20+ - name : Install the latest version of kind
21+ run : |
22+ curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
23+ chmod +x ./kind
24+ sudo mv ./kind /usr/local/bin/kind
25+
26+ - name : Verify kind installation
27+ run : kind version
28+
29+ - name : Create kind cluster
30+ run : kind create cluster
31+
32+ - name : Running Test e2e
33+ run : |
34+ go mod tidy
35+ make test-e2e
Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ test :
9+ name : Run on Ubuntu
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Clone the code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup Go
16+ uses : actions/setup-go@v5
17+ with :
18+ go-version : ' ~1.22'
19+
20+ - name : Running Tests
21+ run : |
22+ go mod tidy
23+ make test
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import (
2828 "sigs.k8s.io/kubebuilder/v4/pkg/plugins"
2929 kustomizecommonv2 "sigs.k8s.io/kubebuilder/v4/pkg/plugins/common/kustomize/v2"
3030 "sigs.k8s.io/kubebuilder/v4/pkg/plugins/golang/v4/scaffolds/internal/templates"
31+ "sigs.k8s.io/kubebuilder/v4/pkg/plugins/golang/v4/scaffolds/internal/templates/github"
3132 "sigs.k8s.io/kubebuilder/v4/pkg/plugins/golang/v4/scaffolds/internal/templates/hack"
3233 "sigs.k8s.io/kubebuilder/v4/pkg/plugins/golang/v4/scaffolds/internal/templates/test/e2e"
3334 "sigs.k8s.io/kubebuilder/v4/pkg/plugins/golang/v4/scaffolds/internal/templates/test/utils"
@@ -162,6 +163,9 @@ func (s *initScaffolder) Scaffold() error {
162163 & e2e.Test {},
163164 & e2e.WebhookTestUpdater {WireWebhook : false },
164165 & e2e.SuiteTest {},
166+ & github.E2eTestCi {},
167+ & github.TestCi {},
168+ & github.LintCi {},
165169 & utils.Utils {},
166170 & templates.DevContainer {},
167171 & templates.DevContainerPostInstallScript {},
You can’t perform that action at this time.
0 commit comments