File tree 2 files changed +42
-0
lines changed
2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - nav-kernel-bin
6
+ pull_request :
7
+ branches :
8
+ - nav-kernel-bin
9
+
10
+ jobs :
11
+ test :
12
+ name : Test
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Set up Go
16
+ uses : actions/setup-go@v3
17
+ with :
18
+ go-version : 1.19
19
+
20
+ - name : Checkout repo
21
+ uses : actions/checkout@v3
22
+
23
+ - name : Run unit tests
24
+ run : make test
25
+
26
+ build :
27
+ name : Build
28
+ runs-on : ubuntu-latest
29
+ needs : [test]
30
+ steps :
31
+ - name : Checkout repo
32
+ uses : actions/checkout@v3
33
+
34
+ - name : Set up Go
35
+ uses : actions/setup-go@v3
36
+ with :
37
+ go-version : 1.19
38
+
39
+ - name : Build
40
+ run : make
Original file line number Diff line number Diff line change @@ -6,4 +6,6 @@ amd64: nav.go
6
6
GOARCH=" amd64" GOOS=" linux" go build
7
7
upx : nav
8
8
upx nav
9
+ test :
10
+ go test
9
11
You can’t perform that action at this time.
0 commit comments