Skip to content

Commit 3fbabd7

Browse files
Merge pull request #2 from RightMesh/actions
CI with GitHub Actions
2 parents 9ca3336 + 7237279 commit 3fbabd7

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.github/workflows/go.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
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+
112
run:
213
go run cmd/main.go

cmd/main.go renamed to main.go

File renamed without changes.

0 commit comments

Comments
 (0)