-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: migrate from travis to github action (#391)
* ci: add github action workflow * remove travis * drop go1.10.x and go1.9.x * add go1.17
- Loading branch information
1 parent
fe9f942
commit 2f1ec40
Showing
2 changed files
with
31 additions
and
29 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,31 @@ | ||
name: ci | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: | ||
- 1.17.x | ||
- 1.16.x | ||
- 1.15.x | ||
- 1.14.x | ||
- 1.13.x | ||
- 1.12.x | ||
- 1.11.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Go ${{ matrix.go-version }} | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Test | ||
run: | | ||
go vet ./... | ||
go test -tags CI -race ./... | ||
env: | ||
GOPATH: /home/runner/go |
This file was deleted.
Oops, something went wrong.