1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

resolve issues with release action

This commit is contained in:
Casey Lee 2019-02-07 09:50:30 -08:00
parent db677404ae
commit 57490858a1
3 changed files with 28 additions and 0 deletions

12
.github/actions/integration/Dockerfile vendored Normal file
View file

@ -0,0 +1,12 @@
FROM golangci/golangci-lint:v1.12.5
LABEL "com.github.actions.name"="Check"
LABEL "com.github.actions.description"="Run integration 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

@ -0,0 +1,3 @@
#!/bin/sh
set -e
go test -cover ./actions

13
.github/main.workflow vendored
View file

@ -33,3 +33,16 @@ action "vendor" {
uses = "docker://golang:1.11.4" uses = "docker://golang:1.11.4"
args = "go mod vendor" args = "go mod vendor"
} }
action "integration-tests" {
needs = ["check"]
uses = "./.github/actions/integration"
}
# local release
action "local-release" {
needs = ["integration-tests"]
uses = "docker://goreleaser/goreleaser:v0.98"
args = "release"
secrets = ["GITHUB_TOKEN"]
}