Skip to content

Commit 471e89b

Browse files
committed
CI: switch from Travis-CI to GitHub Actions
1 parent 58c8e08 commit 471e89b

File tree

2 files changed

+39
-8
lines changed

2 files changed

+39
-8
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: tests
2+
3+
on:
4+
push: {branches: [master]}
5+
pull_request: {branches: [master]}
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-20.04
10+
timeout-minutes: 10
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
gover:
15+
- "1.13"
16+
- "1.14"
17+
- "1.15"
18+
- "1.16"
19+
- "1.17"
20+
goarch:
21+
- "amd64"
22+
- "386"
23+
24+
container: "golang:${{matrix.gover}}-alpine"
25+
env:
26+
GOARCH: "${{matrix.goarch}}"
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
31+
- name: test
32+
run: |
33+
GOMAXPROCS=1 go test -v
34+
GOMAXPROCS=4 go test -v -race
35+
36+
- name: lint
37+
run: |
38+
go vet
39+
gofmt -w *.go && git diff --exit-code

.travis.yml

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

0 commit comments

Comments
 (0)