This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix up tests etc whilst we are at it
- Loading branch information
Showing
14 changed files
with
241 additions
and
210 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,48 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
env: | ||
GOPROXY: https://proxy.golang.org | ||
|
||
# At the time of writing (2020-04-07) the default git config | ||
# on action runners includes core.autocrlf=true. Therefore we | ||
# override that below before checkout out the code. | ||
# | ||
# See also https://github.com/actions/checkout/issues/135 | ||
|
||
name: Test | ||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [1.13.9, 1.14.1] | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@9fbc767707c286e568c92927bbf57d76b73e0892 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Fix git config | ||
run: git config --global core.autocrlf false | ||
- run: mkdir -p gopath/src/github.com/myitcv/gobin | ||
- name: Checkout code | ||
uses: actions/checkout@01aecccf739ca6ff86c0539fbc67a7a5007bbc81 | ||
with: | ||
path: gopath/src/github.com/myitcv/gobin | ||
- name: Test | ||
run: go test ./... | ||
working-directory: gopath/src/github.com/myitcv/gobin | ||
- name: Adjust GOPATH for non-module install | ||
run: echo "::set-env name=GOPATH::$PWD/gopath" | ||
- name: Adjust GO111MODULE for non-module install | ||
run: echo "::set-env name=GO111MODULE::off" | ||
- name: Non-module install test | ||
run: go install | ||
working-directory: gopath/src/github.com/myitcv/gobin |
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,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
env: | ||
GOPROXY: https://proxy.golang.org | ||
|
||
name: Verify commit is clean | ||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [1.14.1] | ||
platform: [ubuntu-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@9fbc767707c286e568c92927bbf57d76b73e0892 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@01aecccf739ca6ff86c0539fbc67a7a5007bbc81 | ||
- run: go mod vendor | ||
- run: go mod tidy | ||
- name: Check git is clean | ||
run: test -z "$(git status --porcelain)" || (git status; git diff; false) | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
_scripts/known_diffs/go1.11.13/badly_sorted_vendor_modules.txt.diff
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
_scripts/known_diffs/go1.12.9/badly_sorted_vendor_modules.txt.diff
This file was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
module github.com/myitcv/gobin | ||
|
||
require github.com/rogpeppe/go-internal v1.3.1 | ||
require github.com/rogpeppe/go-internal v1.5.2 | ||
|
||
go 1.11 |
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
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
26 changes: 12 additions & 14 deletions
26
vendor/github.com/rogpeppe/go-internal/testscript/cmd.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.