-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from vulcanize/ian_dev
Minor updates
- Loading branch information
Showing
20 changed files
with
96 additions
and
1,831 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Go CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Test | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
BIN = $(GOPATH)/bin | ||
BASE = $(GOPATH)/src/$(PACKAGE) | ||
PKGS = go list ./... | grep -v "^vendor/" | ||
|
||
# Tools | ||
## Testing library | ||
## Source linter | ||
LINT = $(BIN)/golint | ||
$(BIN)/golint: | ||
go get -u golang.org/x/lint/golint | ||
|
||
## Combination linter | ||
METALINT = $(BIN)/gometalinter.v2 | ||
$(BIN)/gometalinter.v2: | ||
go get -u gopkg.in/alecthomas/gometalinter.v2 | ||
$(METALINT) --install | ||
|
||
|
||
.PHONY: installtools | ||
installtools: | $(LINT) $(METALINT) | ||
echo "Installing tools" | ||
|
||
.PHONY: metalint | ||
metalint: | $(METALINT) | ||
$(METALINT) ./... --vendor \ | ||
--fast \ | ||
--exclude="exported (function)|(var)|(method)|(type).*should have comment or be unexported" \ | ||
--format="{{.Path.Abs}}:{{.Line}}:{{if .Col}}{{.Col}}{{end}}:{{.Severity}}: {{.Message}} ({{.Linter}})" | ||
|
||
.PHONY: lint | ||
lint: | ||
$(LINT) $$($(PKGS)) | grep -v -E "exported (function)|(var)|(method)|(type).*should have comment or be unexported" | ||
|
||
.PHONY: test | ||
test: | $(GINKGO) $(GOOSE) | ||
go vet ./... | ||
go fmt ./... | ||
go test ./... | ||
|
||
build: | ||
go fmt ./... | ||
GO111MODULE=on go build |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.