We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7b0c31 + 77fd1c4 commit de8b809Copy full SHA for de8b809
.github/workflows/test.yml
@@ -0,0 +1,45 @@
1
+name: Test
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - '**'
7
+ pull_request:
8
9
+ - "*"
10
+ release:
11
+ types:
12
+ - published
13
+ - created
14
+ - edited
15
16
+defaults:
17
+ run:
18
+ shell: bash
19
20
+jobs:
21
+ test:
22
+ runs-on: ubuntu-20.04
23
24
+ steps:
25
+ - name: Install Go
26
+ uses: actions/setup-go@v2
27
+ with:
28
+ go-version: 1.15.x
29
30
+ - name: Checkout code
31
+ uses: actions/checkout@v2
32
33
+ - name: Cache Go module and build cache
34
+ uses: actions/cache@v2
35
36
+ key: go-${{ hashFiles('**/go.sum') }}
37
+ path: |
38
+ ~/go/pkg/mod
39
+ restore-keys: |
40
+ go-
41
42
+ - name: Test and vet
43
+ run: |
44
+ go vet ./...
45
+ go test -v -race ./...
0 commit comments