File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ version: 2
2
2
jobs :
3
3
app :
4
4
docker :
5
- - image : circleci/golang :1.17
5
+ - image : cimg/go :1.18
6
6
7
- working_directory : /go/src/github.com/RoboCup-SSL/ssl-simulation-controller
8
7
steps :
9
8
- checkout
10
9
- run : go get -v -t -d ./...
11
- - run : go test -v ./...
10
+ - run : go test -v -covermode=count -coverprofile=count.out ./...
11
+ - run : go tool cover -html=count.out -o coverage.html
12
12
- run :
13
13
working_directory : cmd/ssl-simulation-controller
14
14
command : |
@@ -19,10 +19,13 @@ jobs:
19
19
root : .
20
20
paths :
21
21
- release/*
22
+ - store_artifacts :
23
+ path : coverage.html
24
+ destination : coverage
22
25
23
26
publish-github-release :
24
27
docker :
25
- - image : circleci/golang :1.17
28
+ - image : cimg/go :1.18
26
29
steps :
27
30
- attach_workspace :
28
31
at : .
@@ -36,16 +39,16 @@ jobs:
36
39
- run :
37
40
name : " Publish Release on GitHub"
38
41
command : |
39
- go get github.com/tcnksm/ghr
42
+ go install github.com/tcnksm/ghr@v0.14.0
40
43
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./release/
41
44
42
45
docker :
43
46
docker :
44
- - image : cimg/base:2021 .12
47
+ - image : cimg/base:2022 .12
45
48
steps :
46
49
- checkout
47
50
- setup_remote_docker :
48
- version : 20.10.6
51
+ version : 20.10.11
49
52
- run : |
50
53
TAG=${CIRCLE_TAG:1}
51
54
TAG=${TAG:-latest}
@@ -62,6 +65,7 @@ workflows:
62
65
tags :
63
66
only : /.*/
64
67
- publish-github-release :
68
+ context : github
65
69
requires :
66
70
- app
67
71
filters :
@@ -76,4 +80,4 @@ workflows:
76
80
only : master
77
81
tags :
78
82
only : /^v.*/
79
-
83
+
Original file line number Diff line number Diff line change 1
1
module github.com/RoboCup-SSL/ssl-simulation-controller
2
2
3
- go 1.16
3
+ go 1.18
4
4
5
5
require (
6
- google.golang.org/protobuf v1.26 .0
6
+ google.golang.org/protobuf v1.28 .0
7
7
gopkg.in/yaml.v2 v2.4.0
8
8
)
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
4
4
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4 =
5
5
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 /go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0 =
6
6
google.golang.org/protobuf v1.26.0-rc.1 /go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw =
7
- google.golang.org/protobuf v1.26 .0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk =
8
- google.golang.org/protobuf v1.26 .0 /go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc =
7
+ google.golang.org/protobuf v1.28 .0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw =
8
+ google.golang.org/protobuf v1.28 .0 /go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I =
9
9
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
10
10
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
11
11
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY =
You can’t perform that action at this time.
0 commit comments