Initial commit with support for GitHub actions
This commit is contained in:
10
.github/actions/check/Dockerfile
vendored
Normal file
10
.github/actions/check/Dockerfile
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM golang:1.11.4-stretch
|
||||
|
||||
RUN go get -u honnef.co/go/tools/cmd/staticcheck
|
||||
RUN go get -u golang.org/x/lint/golint
|
||||
RUN go get -u github.com/fzipp/gocyclo
|
||||
|
||||
COPY "entrypoint.sh" "/entrypoint.sh"
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
10
.github/actions/check/entrypoint.sh
vendored
Normal file
10
.github/actions/check/entrypoint.sh
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
#GOPATH=/go
|
||||
#PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH}
|
||||
|
||||
go vet ./...
|
||||
golint -set_exit_status ./...
|
||||
staticcheck ./...
|
||||
gocyclo -over 10 .
|
||||
go test -cover ./...
|
Reference in New Issue
Block a user