fail on error (#20)

ci-via-github-actions
This commit is contained in:
Casey Lee
2019-01-23 11:51:22 -08:00
committed by GitHub
parent f98caa2656
commit 320e9b6057
1274 changed files with 398630 additions and 9 deletions

View File

@@ -1,6 +1,12 @@
FROM golangci/golangci-lint:v1.12.5
LABEL "com.github.actions.name"="Check"
LABEL "com.github.actions.description"="Run static analysis and unit tests"
LABEL "com.github.actions.icon"="check-circle"
LABEL "com.github.actions.color"="green"
COPY "entrypoint.sh" "/entrypoint.sh"
RUN chmod +x /entrypoint.sh
ENV GOFLAGS -mod=vendor
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -1,4 +1,4 @@
#!/bin/sh
set -e
golangci-lint run
go test -cover ./...