Skip to content

Commit

Permalink
run "go build” inside go container on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
drewwyatt committed Apr 27, 2019
1 parent 4d9a025 commit d7f9d00
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ workflow "Release" {
resolves = ["goreleaser"]
}

workflow "Build" {
on = "pull_request"
resolves = ["build"]
}

action "is-tag" {
uses = "actions/bin/filter@master"
args = "tag"
Expand All @@ -12,12 +17,14 @@ action "goreleaser" {
uses = "docker://goreleaser/goreleaser"
secrets = [
"GITHUB_TOKEN",

# either GITHUB_TOKEN or GORELEASER_GITHUB_TOKEN is required
"DOCKER_USERNAME",

"DOCKER_PASSWORD",
]
args = "release"
needs = ["is-tag"]
}

action "build" {
uses = "docker://golang:1.11"
args = "go build"
}

0 comments on commit d7f9d00

Please sign in to comment.