add support for 'reuse' mode to allow act to be used for a fast local task runner

此提交包含在:
Casey Lee
2019-01-17 00:45:37 -08:00
父節點 317a305f51
當前提交 8793c8a6a4
共有 11 個檔案被更改,包括 107 行新增72 行删除

查看文件

@@ -1,10 +1,6 @@
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
FROM golangci/golangci-lint:v1.12.5
COPY "entrypoint.sh" "/entrypoint.sh"
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]

查看文件

@@ -1,10 +1,4 @@
#!/bin/sh
#GOPATH=/go
#PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH}
go vet ./...
golint -set_exit_status ./...
staticcheck ./...
gocyclo -over 10 .
golangci-lint run
go test -cover ./...

14
.github/main.workflow 已供應
查看文件

@@ -7,15 +7,21 @@ action "check" {
uses = "./.github/actions/check"
}
action "branch-filter" {
action "branch-filter" {
needs = ["check"]
uses = "actions/bin/filter@master"
args = "tag v*"
}
}
action "release" {
action "release" {
needs = ["branch-filter"]
uses = "docker://goreleaser/goreleaser:v0.97"
args = "release"
secrets = ["GITHUB_TOKEN"]
}
}
action "build" {
uses = "docker://goreleaser/goreleaser:v0.97"
args = "--snapshot --rm-dist"
secrets = ["SNAPSHOT_VERSION"]
}