Skip to content

Commit 6b6542a

Browse files
committed
Add basic GitHub actions
1 parent ffaab4d commit 6b6542a

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/build.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ amd64: nav.go
66
GOARCH="amd64" GOOS="linux" go build
77
upx: nav
88
upx nav
9+
test:
10+
go test
911

0 commit comments

Comments
 (0)