Skip to content

Commit

Permalink
Add CI tests for go version 1.14, 1.15, also go mod tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
mennanov committed Jan 4, 2022
1 parent b28edb2 commit c7c4666
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 32 deletions.
28 changes: 6 additions & 22 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,9 @@ steps:
commands:
- go test -race -v -coverprofile=coverage.txt -covermode=atomic ./...

- name: coverage
image: plugins/codecov
settings:
token:
from_secret: codecov-token
files:
- coverage.txt

---
kind: pipeline
name: go1.13
name: go1.15

services:
- name: etcd
Expand All @@ -97,7 +89,7 @@ services:

steps:
- name: test
image: golang:1.13
image: golang:1.15
environment:
ETCD_ENDPOINTS: "etcd:2379"
REDIS_ADDR: "redis:6379"
Expand All @@ -106,17 +98,9 @@ steps:
commands:
- go test -race -v -coverprofile=coverage.txt -covermode=atomic ./...

- name: coverage
image: plugins/codecov
settings:
token:
from_secret: codecov-token
files:
- coverage.txt

---
kind: pipeline
name: go1.12
name: go1.14

services:
- name: etcd
Expand All @@ -136,7 +120,7 @@ services:

steps:
- name: test
image: golang:1.12
image: golang:1.14
environment:
ETCD_ENDPOINTS: "etcd:2379"
REDIS_ADDR: "redis:6379"
Expand All @@ -147,7 +131,7 @@ steps:

---
kind: pipeline
name: go1.11
name: go1.13

services:
- name: etcd
Expand All @@ -167,7 +151,7 @@ services:

steps:
- name: test
image: golang:1.11
image: golang:1.13
environment:
ETCD_ENDPOINTS: "etcd:2379"
REDIS_ADDR: "redis:6379"
Expand Down
23 changes: 13 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@ module github.com/mennanov/limiters

go 1.17

require (
github.com/go-redis/redis v6.15.2+incompatible
github.com/golang/protobuf v1.5.2
github.com/google/uuid v1.1.2
github.com/hashicorp/consul/api v1.2.0
github.com/pkg/errors v0.9.1
github.com/samuel/go-zookeeper v0.0.0-20190810000440-0ceca61e4d75
github.com/stretchr/testify v1.7.0
go.etcd.io/etcd/api/v3 v3.5.1
go.etcd.io/etcd/client/v3 v3.5.1
google.golang.org/grpc v1.38.0
)

require (
github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-redis/redis v6.15.2+incompatible
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2
github.com/google/btree v1.0.1 // indirect
github.com/google/uuid v1.1.2
github.com/hashicorp/consul/api v1.2.0
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/hashicorp/go-immutable-radix v1.0.0 // indirect
github.com/hashicorp/go-msgpack v0.5.5 // indirect
Expand All @@ -25,13 +34,8 @@ require (
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/onsi/ginkgo v1.9.0 // indirect
github.com/onsi/gomega v1.7.0 // indirect
github.com/pkg/errors v0.9.1
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/samuel/go-zookeeper v0.0.0-20190810000440-0ceca61e4d75
github.com/stretchr/testify v1.7.0
go.etcd.io/etcd/api/v3 v3.5.1
go.etcd.io/etcd/client/pkg/v3 v3.5.1 // indirect
go.etcd.io/etcd/client/v3 v3.5.1
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.17.0 // indirect
Expand All @@ -40,7 +44,6 @@ require (
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 // indirect
golang.org/x/text v0.3.5 // indirect
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect
google.golang.org/grpc v1.38.0
google.golang.org/protobuf v1.26.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
Expand Down

0 comments on commit c7c4666

Please sign in to comment.