forked from mitchellh/gox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remote/master' into build-merge
# Conflicts: # go.sum
- Loading branch information
Showing
7 changed files
with
264 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: build | ||
|
||
on: | ||
push: {} | ||
|
||
env: | ||
GOPATH: /home/runner/work/go | ||
|
||
jobs: | ||
test-after-go-11: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: [ | ||
"1.11.13", | ||
"1.12.17", | ||
"1.13.15", | ||
"1.14.15", | ||
"1.15.15", | ||
"1.16.15", | ||
"1.17.7", | ||
"1.18.3", | ||
] | ||
fail-fast: true | ||
|
||
name: Go ${{ matrix.go }} test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Build | ||
run: go build . | ||
- name: Test | ||
run: go test -v ./... | ||
test-before-go-11: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: [ | ||
"1.6.4", | ||
"1.7.6", | ||
"1.8.7", | ||
"1.9.7", | ||
"1.10.8", | ||
] | ||
fail-fast: true | ||
|
||
name: Go ${{ matrix.go }} test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Setup GOPATH | ||
run: mkdir -p $GOPATH/src/github.com/$GITHUB_REPOSITORY | ||
- name: Copy | ||
run: cp -r ./ $GOPATH/src/github.com/$GITHUB_REPOSITORY | ||
- name: Get | ||
run: cd $GOPATH/src/github.com/$GITHUB_REPOSITORY && go get . | ||
- name: Build | ||
run: cd $GOPATH/src/github.com/$GITHUB_REPOSITORY && go build . | ||
- name: Test | ||
run: cd $GOPATH/src/github.com/$GITHUB_REPOSITORY && go test -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04x7iNw= | ||
github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= | ||
github.com/mitchellh/iochan v0.0.0-20150529224432-87b45ffd0e95 h1:aHWVygBsLb+Kls/35B3tevL1hvDxZ0UklPA0BmhqTEk= | ||
github.com/mitchellh/iochan v0.0.0-20150529224432-87b45ffd0e95/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= | ||
github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY= | ||
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.