Skip to content

Commit 6118ca9

Browse files
committed
Update versions and pipeline
1 parent 191e3ff commit 6118ca9

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

.circleci/config.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ version: 2
22
jobs:
33
app:
44
docker:
5-
- image: circleci/golang:1.17
5+
- image: cimg/go:1.18
66

7-
working_directory: /go/src/github.com/RoboCup-SSL/ssl-simulation-controller
87
steps:
98
- checkout
109
- 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
1212
- run:
1313
working_directory: cmd/ssl-simulation-controller
1414
command: |
@@ -19,10 +19,13 @@ jobs:
1919
root: .
2020
paths:
2121
- release/*
22+
- store_artifacts:
23+
path: coverage.html
24+
destination: coverage
2225

2326
publish-github-release:
2427
docker:
25-
- image: circleci/golang:1.17
28+
- image: cimg/go:1.18
2629
steps:
2730
- attach_workspace:
2831
at: .
@@ -36,16 +39,16 @@ jobs:
3639
- run:
3740
name: "Publish Release on GitHub"
3841
command: |
39-
go get github.com/tcnksm/ghr
42+
go install github.com/tcnksm/ghr@v0.14.0
4043
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./release/
4144
4245
docker:
4346
docker:
44-
- image: cimg/base:2021.12
47+
- image: cimg/base:2022.12
4548
steps:
4649
- checkout
4750
- setup_remote_docker:
48-
version: 20.10.6
51+
version: 20.10.11
4952
- run: |
5053
TAG=${CIRCLE_TAG:1}
5154
TAG=${TAG:-latest}
@@ -62,6 +65,7 @@ workflows:
6265
tags:
6366
only: /.*/
6467
- publish-github-release:
68+
context: github
6569
requires:
6670
- app
6771
filters:
@@ -76,4 +80,4 @@ workflows:
7680
only: master
7781
tags:
7882
only: /^v.*/
79-
83+

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/RoboCup-SSL/ssl-simulation-controller
22

3-
go 1.16
3+
go 1.18
44

55
require (
6-
google.golang.org/protobuf v1.26.0
6+
google.golang.org/protobuf v1.28.0
77
gopkg.in/yaml.v2 v2.4.0
88
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
44
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
55
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
66
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=
99
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1010
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1111
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=

0 commit comments

Comments
 (0)