Skip to content

Commit 2f1ec40

Browse files
authored
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
1 parent fe9f942 commit 2f1ec40

File tree

2 files changed

+31
-29
lines changed

2 files changed

+31
-29
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ci
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
go-version:
12+
- 1.17.x
13+
- 1.16.x
14+
- 1.15.x
15+
- 1.14.x
16+
- 1.13.x
17+
- 1.12.x
18+
- 1.11.x
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Go ${{ matrix.go-version }}
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: ${{ matrix.go-version }}
25+
26+
- name: Test
27+
run: |
28+
go vet ./...
29+
go test -tags CI -race ./...
30+
env:
31+
GOPATH: /home/runner/go

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)