We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58c8e08 commit 471e89bCopy full SHA for 471e89b
.github/workflows/test.yml
@@ -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
38
+ go vet
39
+ gofmt -w *.go && git diff --exit-code
.travis.yml
0 commit comments