File tree Expand file tree Collapse file tree 4 files changed +37
-62
lines changed Expand file tree Collapse file tree 4 files changed +37
-62
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : Run Tests
2
-
3
- on :
4
- push :
5
- branches :
6
- - main
7
- pull_request :
8
- branches :
9
- - main
1
+ name : Run CI Lint
2
+ on : push
10
3
11
4
jobs :
12
5
test :
17
10
name : ${{ matrix.os }} @ Go ${{ matrix.go }}
18
11
runs-on : ${{ matrix.os }}
19
12
20
- # Service containers to run with `container-job`
21
- services :
22
- nats :
23
- image : nats
24
- ports :
25
- - 4222:4222
26
-
27
13
env :
28
14
GO111MODULE : on
29
15
TESTTAGS : ${{ matrix.test-tags }}
43
29
uses : golangci/golangci-lint-action@v2
44
30
with :
45
31
version : v1.41.1
46
-
47
- - name : Run Tests
48
- run : |
49
- go test -v -covermode=atomic -coverprofile=coverage.out .
50
-
51
- - name : Upload coverage to Codecov
52
- uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change
1
+ name : Run Testing
2
+ on : push
3
+
4
+ jobs :
5
+ # Label of the container job
6
+ runner-job :
7
+ # You must use a Linux environment when using service containers or container jobs
8
+ runs-on : ubuntu-latest
9
+
10
+ # Service containers to run with `container-job`
11
+ services :
12
+ nats :
13
+ image : nats
14
+ ports :
15
+ - 4222:4222
16
+
17
+ env :
18
+ GO111MODULE : on
19
+ GOPROXY : https://proxy.golang.org
20
+ steps :
21
+ - name : Set up Go ${{ matrix.go }}
22
+ uses : actions/setup-go@v2
23
+
24
+ - name : Checkout Code
25
+ uses : actions/checkout@v2
26
+ with :
27
+ ref : ${{ github.ref }}
28
+
29
+ - name : Run Tests
30
+ run : |
31
+ go test -v -covermode=atomic -coverprofile=coverage.out .
32
+
33
+ - name : Upload coverage to Codecov
34
+ uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
"github.com/stretchr/testify/assert"
15
15
)
16
16
17
- var host = "nats "
17
+ var host = "127.0.0.1 "
18
18
19
19
type mockMessage struct {
20
20
Message string
You can’t perform that action at this time.
0 commit comments