File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Run Tests
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ test :
13
+ strategy :
14
+ matrix :
15
+ os : [ubuntu-latest]
16
+ go : [1.13, 1.14, 1.15, 1.16]
17
+ name : ${{ matrix.os }} @ Go ${{ matrix.go }}
18
+ runs-on : ${{ matrix.os }}
19
+
20
+ # Service containers to run with `container-job`
21
+ services :
22
+ # Label used to access the service container
23
+ redis :
24
+ # Docker Hub image
25
+ image : redis
26
+ # Set health checks to wait until redis has started
27
+ options : >-
28
+ --health-cmd "redis-cli ping"
29
+ --health-interval 10s
30
+ --health-timeout 5s
31
+ --health-retries 5
32
+ ports :
33
+ # Maps port 6379 on service container to the host
34
+ - 6379:6379
35
+
36
+ nsq :
37
+ image : nsqio/nsq
38
+ ports :
39
+ # Maps port 6379 on service container to the host
40
+ - 4150:4150
41
+
42
+ env :
43
+ GO111MODULE : on
44
+ TESTTAGS : ${{ matrix.test-tags }}
45
+ GOPROXY : https://proxy.golang.org
46
+ steps :
47
+ - name : Set up Go ${{ matrix.go }}
48
+ uses : actions/setup-go@v2
49
+ with :
50
+ go-version : ${{ matrix.go }}
51
+
52
+ - name : Checkout Code
53
+ uses : actions/checkout@v2
54
+ with :
55
+ ref : ${{ github.ref }}
56
+
57
+ - name : golangci-lint
58
+ uses : golangci/golangci-lint-action@v2
59
+ with :
60
+ version : v1.41.1
You can’t perform that action at this time.
0 commit comments