18
18
19
19
env :
20
20
SRC_DIR : src/github.com/${{ github.repository }}
21
- GO111MODULE : auto
22
21
23
22
strategy :
24
23
matrix :
29
28
uses : actions/setup-go@v3
30
29
with :
31
30
go-version : ${{ matrix.go }}
32
- id : go
33
-
34
- - name : Setup PATH
35
- run : |
36
- echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
37
- echo "GOBIN=${{ github.workspace }}/bin" >> "$GITHUB_ENV"
38
- echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
39
31
40
32
- name : Checkout
41
33
uses : actions/checkout@v3
@@ -50,33 +42,29 @@ jobs:
50
42
working-directory : ${{env.SRC_DIR}}
51
43
run : go test -covermode=count -coverprofile=cover.out
52
44
53
- - name : Install goveralls
54
- env :
55
- GO111MODULE : off
56
- run : go get -v github.com/mattn/goveralls
57
-
58
- - name : Send coverage to Coveralls
59
- working-directory : ${{env.SRC_DIR}}
45
+ - name : Send coverage data
46
+ uses : essentialkaos/goveralls-action@v1
60
47
env :
61
48
COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
- run : goveralls -service github -coverprofile cover.out
63
-
64
- - name : Set up Node.js
65
- uses : actions/setup-node@v3
66
49
with :
67
- node-version : ' 14.x'
50
+ path : ${{env.SRC_DIR}}
51
+ profile : cover.out
52
+ parallel : true
53
+ flag-name : linux-${{ matrix.go }}
68
54
69
- - name : Install codeclimate-test-reporter
70
- run : npm install -g codeclimate-test-reporter
55
+ SendCoverage :
56
+ name : Send Coverage
57
+ runs-on : ubuntu-latest
71
58
72
- - name : Send coverage to Codebeat
73
- working-directory : ${{env.SRC_DIR}}
59
+ needs : Go
60
+
61
+ steps :
62
+ - name : Finish parallel tests
63
+ uses : essentialkaos/goveralls-action@v1
74
64
env :
75
- CODECLIMATE_API_HOST : https://codebeat.co/webhooks/code_coverage
76
- CODECLIMATE_REPO_TOKEN : ${{ secrets.CODECLIMATE_TOKEN }}
77
- run : |
78
- sed -i'.original' 's#/v[0-9]\+/#/#g' cover.out
79
- codeclimate-test-reporter < cover.out
65
+ COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66
+ with :
67
+ parallel-finished : true
80
68
81
69
Aligo :
82
70
name : Aligo
@@ -86,20 +74,13 @@ jobs:
86
74
87
75
env :
88
76
SRC_DIR : src/github.com/${{ github.repository }}
89
- GO111MODULE : auto
90
77
91
78
steps :
92
79
- name : Set up Go
93
80
uses : actions/setup-go@v3
94
81
with :
95
82
go-version : ' 1.17.x'
96
- id : go
97
83
98
- - name : Setup PATH
99
- run : |
100
- echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
101
- echo "GOBIN=${{ github.workspace }}/bin" >> "$GITHUB_ENV"
102
- echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
103
84
- name : Checkout
104
85
uses : actions/checkout@v3
105
86
with :
0 commit comments