File tree 2 files changed +42
-1
lines changed
2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Pull Request
2
+
3
+ on :
4
+ pull_request :
5
+
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ arch : [ linux/amd64, linux/arm64 ]
12
+ steps :
13
+ - name : Check out code
14
+ uses : actions/checkout@v4
15
+ - name : Setup Go
16
+ uses : actions/setup-go@v5
17
+ with :
18
+ go-version : ' >=1.21.0'
19
+ - name : Go Format
20
+ run : make fmt && git diff --exit-code
21
+ - name : Go Vet
22
+ run : make vet
23
+ - name : Go Tidy
24
+ run : go mod tidy && git diff --exit-code
25
+ - name : Go Mod
26
+ run : go mod download
27
+ - name : Go Mod Verify
28
+ run : go mod verify
29
+ - name : Go Build
30
+ run : make build
31
+ - name : Go Build
32
+ run : make test
33
+
34
+
35
+
36
+
37
+
Original file line number Diff line number Diff line change @@ -26,11 +26,15 @@ integration:
26
26
RUN_INTEGRATION_TESTS=true go test -v ./...
27
27
.PHONY : integration
28
28
29
+ vet :
30
+ go vet ./...
31
+ .PHONY : vet
32
+
29
33
fmt :
30
34
gofmt -s -w .
31
35
.PHONY : fmt
32
36
33
- check : fmt clean build build-docker lint test integration
37
+ check : fmt vet clean build build-docker lint test integration
34
38
.PHONY : check
35
39
36
40
lint :
You can’t perform that action at this time.
0 commit comments