File: main.workflow

package info (click to toggle)
golang-github-fatih-structtag 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 88 kB
  • sloc: makefile: 2
file content (23 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
workflow "Build and Test" {
  on = "pull_request"
  resolves = ["go test"]
}

action "go build" {
  uses = "docker://golang:1.12.7"
  runs = "go"
  args = "build ./..."
  env = {
    GOPROXY = "https://proxy.golang.org"
  }
}

action "go test" {
  uses = "docker://golang:1.12.7"
  needs = ["go build"]
  runs = "go"
  args = "test -v -cover -race ./..."
  env = {
    GOPROXY = "https://proxy.golang.org"
  }
}