Skip to content

Commit 0172b11

Browse files
committed
Add Github workflow
This commit introduces a Github workflow file to build, test and analyze code in the repository.
1 parent ce621ba commit 0172b11

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
build:
12+
name: Build
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: Set up Go 1.x
17+
uses: actions/setup-go@v2
18+
id: go
19+
with:
20+
go-version: ^1.14
21+
22+
- name: Check out code into the Go module directory
23+
uses: actions/checkout@v2
24+
25+
- name: Get dependencies
26+
run: go get -v -t -d ./...
27+
28+
- name: Build
29+
run: go build -v .
30+
31+
- name: Test
32+
run: go test -v .
33+
34+
- name: Lint
35+
uses: golangci/[email protected]
36+
with:
37+
version: v1.28

0 commit comments

Comments
 (0)