Skip to content

Commit 1f4fc57

Browse files
authored
Merge pull request #981 from camilamacedo86/contributing
getting started to contribute with. Add makefile commands and improve CONTRIBUTING.MD
2 parents 8b2104c + de899bd commit 1f4fc57

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,9 @@ Please see https://git.k8s.io/community/CLA.md for more info.
1515

1616
## How to build kubebuilder locally
1717

18-
1. Build
19-
```sh
20-
$ make build
21-
```
22-
23-
1. Test
24-
```sh
25-
$ ./test.sh
26-
```
18+
1. Ensure you activate module support before continue (`$ export GO111MODULE=on`)
19+
1. Build the project by using the command `make build`
20+
1. Run the tests by using the command `make test` and `make test-project-generation`
2721

2822
## Community, discussion and support
2923

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ install: build
3131
generate:
3232
GO111MODULE=on ./generated_golden.sh
3333

34+
.PHONY: test
3435
test:
3536
go test -v ./cmd/... ./pkg/...
3637

38+
.PHONY: test-project-generation
39+
test-project-generation:
40+
./test.sh
41+
42+
.PHONY: test-e2e
43+
test-e2e:
44+
./test_e2e.sh

0 commit comments

Comments
 (0)