Skip to content

Commit

Permalink
Merge pull request #75 from BurntSushi/actions
Browse files Browse the repository at this point in the history
Add Actions
  • Loading branch information
arp242 authored Jun 28, 2021
2 parents 34d1ab7 + 40d699c commit 8c0aa6d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "go test",
"on": ["push", "pull_request"],
"jobs": {
"test": {
"strategy": {
"matrix": {
"go-version": ["1.16.x"],
"os": ["ubuntu-latest", "macos-latest", "windows-latest"]
}
},
"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": "Test",
"run": "go test -v ./..."
},
{
"name": "Install",
"run": "go install -v ./cmd/toml-test"
}
]
}
}
}

0 comments on commit 8c0aa6d

Please sign in to comment.