File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Go
2
+ on : [push]
3
+ jobs :
4
+
5
+ build :
6
+ name : Build
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Set up Go 1.12
10
+ uses : actions/setup-go@v1
11
+ with :
12
+ go-version : 1.12
13
+ id : go
14
+
15
+ - name : Check out code into the Go module directory
16
+ uses : actions/checkout@v1
17
+ with :
18
+ path : go/src/github.com/rightmesh/awdb
19
+
20
+ - name : Install golint
21
+ run : |
22
+ export GOPATH=$(realpath ../../../..)
23
+ go get golang.org/x/lint/golint
24
+
25
+ - name : Build project
26
+ run : |
27
+ export GOPATH=$(realpath ../../../..)
28
+ make
Original file line number Diff line number Diff line change
1
+ all : build
2
+
3
+ build : lint
4
+ go build -v .
5
+
6
+ clean :
7
+ go clean
8
+
9
+ lint :
10
+ ${GOPATH} /bin/golint ./...
11
+
1
12
run :
2
13
go run cmd/main.go
File renamed without changes.
You can’t perform that action at this time.
0 commit comments