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:
parent
db677404ae
commit
57490858a1
3 changed files with 28 additions and 0 deletions
12
.github/actions/integration/Dockerfile
vendored
Normal file
12
.github/actions/integration/Dockerfile
vendored
Normal 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"]
|
3
.github/actions/integration/entrypoint.sh
vendored
Normal file
3
.github/actions/integration/entrypoint.sh
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
go test -cover ./actions
|
13
.github/main.workflow
vendored
13
.github/main.workflow
vendored
|
@ -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"]
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue