Commit cbbbd22 1 parent 609e3d3 commit cbbbd22 Copy full SHA for cbbbd22
File tree 2 files changed +22
-3
lines changed
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 6
6
- published
7
7
8
8
jobs :
9
+ test :
10
+ name : Run Go Format and Test
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v3
16
+
17
+ - name : Set up Go
18
+ uses : actions/setup-go@v4
19
+ with :
20
+ go-version : " 1.22.6"
21
+
22
+ - name : Go Format
23
+ run : go fmt ./...
24
+
25
+ - name : Run Go Tests
26
+ run : go test -v ./...
27
+
9
28
build :
10
29
name : Build Go binaries
30
+ needs : test
11
31
runs-on : ubuntu-latest
12
32
13
33
strategy :
Original file line number Diff line number Diff line change @@ -32,9 +32,8 @@ $(BUILDDIR)/:
32
32
install :
33
33
go install -ldflags " -X github.com/initia-labs/weave/cmd.Version=$( WEAVE_VERSION) " .
34
34
35
- test : build
36
- clear
37
- ./weave
35
+ test :
36
+ go test -v ./...
38
37
39
38
release :
40
39
@if [ -z " $( release_version) " ]; then \
You can’t perform that action at this time.
0 commit comments