File tree 3 files changed +60
-0
lines changed 3 files changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Go
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+
8
+ jobs :
9
+ build :
10
+ name : Test
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Setup Go
16
+ uses : actions/setup-go@v5
17
+ with :
18
+ go-version : ' 1.23.x'
19
+ - name : Verify Vendoring
20
+ run : make verify-vendor
21
+ - name : Build
22
+ run : make build
23
+ - name : Build GolangCI-Lint
24
+ run : make build-golangci
25
+ - name : Test
26
+ run : make test
Original file line number Diff line number Diff line change
1
+ name : golangci-lint
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+
8
+ permissions :
9
+ contents : read
10
+ # Optional: allow read access to pull request. Use with `only-new-issues` option.
11
+ # pull-requests: read
12
+
13
+ jobs :
14
+ golangci :
15
+ name : lint
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-go@v5
20
+ with :
21
+ go-version : stable
22
+ - name : golangci-lint
23
+ uses : golangci/golangci-lint-action@v6
24
+ with :
25
+ version : v1.62
Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ lint: ## Run golangci-lint over the codebase.
46
46
.PHONY : test
47
47
test : fmt vet unit # # Run tests.
48
48
49
+ .PHONY : unit
50
+ unit : # # Run unit tests.
51
+ go test ./...
52
+
49
53
# #@ Build
50
54
51
55
.PHONY : build
@@ -55,3 +59,8 @@ build: fmt vet ## Build KAL binary.
55
59
.PHONY : build-golangci
56
60
build-golangci : # # Run golangci-lint over the codebase.
57
61
${GOLANGCI_LINT} custom
62
+
63
+ .PHONY : verify-%
64
+ verify-% :
65
+ make $*
66
+ git diff --exit-code
You can’t perform that action at this time.
0 commit comments