-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
default.cue
42 lines (41 loc) · 876 Bytes
/
default.cue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import "github.com/hofstadter-io/ghacue"
ghacue.#Workflow & {
name: "hof"
on: ["push", "pull_request"]
jobs: test: {
strategy: matrix: {
"go-version": ["1.16.x"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
}
strategy: "fail-fast": false
"runs-on": "${{ matrix.os }}"
steps: [{
name: "Install Go"
uses: "actions/setup-go@v2"
with: "go-version": "${{ matrix.go-version }}"
},{
name: "Checkout code"
uses: "actions/checkout@v2"
},{
name: "Download mods"
run: "go mod download"
},{
name: "Build CLI"
run: "go install ./cmd/hof"
},{
name: "Run tests"
run: """
hof test test.cue -s gen -t test
hof test test.cue -s lib -t test -t mod
"""
env: {
GITHUB_TOKEN: "${secrets.HOFMOD_TOKEN}"
}
},{
name: "Run extra tests"
run: """
hof test test/testers/api/postman.cue
"""
}]
}
}