diff --git a/.github/workflows/go.yml b/.github/workflows/build.yml similarity index 74% rename from .github/workflows/go.yml rename to .github/workflows/build.yml index dcd1523..dffff80 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/build.yml @@ -1,15 +1,16 @@ -name: Go +name: Build + on: [push] -jobs: +jobs: build: name: Build runs-on: ubuntu-latest steps: - - name: Set up Go 1.12 + - name: Set up Go 1.13 uses: actions/setup-go@v1 with: - go-version: 1.12 + go-version: 1.13 id: go - name: Check out code into the Go module directory @@ -17,12 +18,12 @@ jobs: with: path: go/src/github.com/rightmesh/awdb - - name: Install golint + - name: Lint Project run: | export GOPATH=$(realpath ../../../..) go get golang.org/x/lint/golint + $GOPATH/bin/golint ./... - name: Build project run: | - export GOPATH=$(realpath ../../../..) - make + go build diff --git a/Makefile b/Makefile deleted file mode 100644 index 06b4147..0000000 --- a/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -all: build - -build: lint - go build -v . - -clean: - go clean - -lint: - ${GOPATH}/bin/golint ./... - -run: - go run cmd/main.go diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..0296fa3 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/rightmesh/awdb + +go 1.13