-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testscript: support Go 1.16, move to Actions
https://go-review.googlesource.com/c/go/+/250977 adds a new method to the testing.testDeps interface, so mirror that here in our no-op implementation too. While at it, replace Travis with GitHub Actions, which is faster and easier to use. We still test on Linux, Mac, and Windows, and with the two latest Go versions. Otherwise, the config is a straight port, and we run the same commands.
- Loading branch information
Showing
4 changed files
with
35 additions
and
41 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,28 @@ | ||
on: [push, pull_request] | ||
name: Test | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go-version: [1.14.x, 1.15.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 ./... | ||
go test -race ./... | ||
- name: Tidy | ||
if: matrix.os == 'ubuntu-latest' # no need to do this everywhere | ||
run: | | ||
go mod tidy | ||
test -z "$(gofmt -d .)" || (gofmt -d . && false) | ||
test -z "$(git status --porcelain)" || (git status; git diff && false) |
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
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