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 7297806 commit 7e0b3b3Copy full SHA for 7e0b3b3
.github/workflows/unit.yml
@@ -0,0 +1,37 @@
1
+on: [push, pull_request]
2
+name: Unit Testing
3
+jobs:
4
+ test:
5
+ runs-on: ubuntu-20.04
6
+ strategy:
7
+ fail-fast: false
8
+ matrix:
9
+ go-version:
10
+ - "1.15"
11
+
12
+ env:
13
+ GO111MODULE: "on"
14
15
+ steps:
16
+ - name: Setup Go ${{ matrix.go-version }}
17
+ uses: actions/setup-go@v2
18
+ with:
19
+ go-version: ${{ matrix.go-version }}
20
21
+ - uses: actions/checkout@v2
22
23
+ - name: Setup environment
24
+ run: |
25
+ go get golang.org/x/tools/cmd/goimports
26
27
+ - name: Run go vet
28
29
+ go vet ./...
30
31
+ - name: Run unit tests
32
33
+ go test -v ./...
34
35
+ - name: Check for formatting
36
+ run:
37
+ ./script/format
.travis.yml
0 commit comments