This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree 2 files changed +23
-12
lines changed 2 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ on: [push]
3
3
4
4
jobs :
5
5
fmt :
6
- runs-on : ubuntu-latest
6
+ runs-on : ubuntu-20.04
7
7
steps :
8
- - uses : actions/checkout@v1
9
- - uses : actions/cache@v1
8
+ - uses : actions/checkout@v2
9
+ - uses : actions/cache@v2
10
10
with :
11
11
path : ~/go/pkg/mod
12
12
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -18,33 +18,35 @@ jobs:
18
18
args : make -j fmt
19
19
- run : ./ci/scripts/files_changed.sh
20
20
lint :
21
- runs-on : ubuntu-latest
21
+ runs-on : ubuntu-20.04
22
22
steps :
23
23
- uses : actions/checkout@v2
24
24
- name : golangci-lint
25
25
uses : golangci/golangci-lint-action@v2
26
26
with :
27
27
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
28
- version : v1.29
28
+ version : v1.36
29
29
test :
30
- runs-on : ubuntu-latest
30
+ runs-on : ubuntu-20.04
31
31
steps :
32
- - uses : actions/checkout@v1
33
- - uses : actions/cache@v1
32
+ - uses : actions/checkout@v2
33
+ - uses : actions/cache@v2
34
34
with :
35
35
path : ~/go/pkg/mod
36
36
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
37
37
restore-keys : |
38
38
${{ runner.os }}-go-
39
39
- name : test
40
40
uses : ./ci/image
41
+ env :
42
+ COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
43
with :
42
- args : make -j test/go
44
+ args : make -j test/coverage
43
45
gendocs :
44
- runs-on : ubuntu-latest
46
+ runs-on : ubuntu-20.04
45
47
steps :
46
- - uses : actions/checkout@v1
47
- - uses : actions/cache@v1
48
+ - uses : actions/checkout@v2
49
+ - uses : actions/cache@v2
48
50
with :
49
51
path : ~/go/pkg/mod
50
52
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Original file line number Diff line number Diff line change @@ -33,3 +33,12 @@ gendocs:
33
33
34
34
test/go :
35
35
go test $$(go list ./... | grep -v pkg/tcli | grep -v ci/integration | grep -v coder-sdk )
36
+
37
+ test/coverage :
38
+ go test \
39
+ -race \
40
+ -covermode atomic \
41
+ -coverprofile coverage \
42
+ $$(go list ./... | grep -v pkg/tcli | grep -v ci/integration | grep -v coder-sdk )
43
+
44
+ goveralls -coverprofile=coverage -service=github
You can’t perform that action at this time.
0 commit comments