Skip to content

Commit 8c0aa6d

Browse files
authored
Merge pull request #75 from BurntSushi/actions
Add Actions
2 parents 34d1ab7 + 40d699c commit 8c0aa6d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "go test",
3+
"on": ["push", "pull_request"],
4+
"jobs": {
5+
"test": {
6+
"strategy": {
7+
"matrix": {
8+
"go-version": ["1.16.x"],
9+
"os": ["ubuntu-latest", "macos-latest", "windows-latest"]
10+
}
11+
},
12+
"runs-on": "${{ matrix.os }}",
13+
"steps": [
14+
{
15+
"name": "Install Go",
16+
"uses": "actions/setup-go@v2",
17+
"with": {"go-version": "${{ matrix.go-version }}"}
18+
},
19+
{
20+
"name": "Checkout code",
21+
"uses": "actions/checkout@v2"
22+
},
23+
{
24+
"name": "Test",
25+
"run": "go test -v ./..."
26+
},
27+
{
28+
"name": "Install",
29+
"run": "go install -v ./cmd/toml-test"
30+
}
31+
]
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)