Skip to content

Commit

Permalink
Merge pull request #2 from kishaningithub/patch-1
Browse files Browse the repository at this point in the history
Add golang 1.16 and 1.17 to the drone pipeline
  • Loading branch information
mennanov authored Aug 24, 2021
2 parents 01db640 + 3301859 commit 5981262
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,82 @@
kind: pipeline
name: go1.17

services:
- name: etcd
image: bitnami/etcd
environment:
ALLOW_NONE_AUTHENTICATION: yes
- name: redis
image: bitnami/redis
environment:
ALLOW_EMPTY_PASSWORD: yes
- name: consul
image: bitnami/consul
- name: zookeeper
image: bitnami/zookeeper
environment:
ALLOW_ANONYMOUS_LOGIN: yes

steps:
- name: test
image: golang:1.17
environment:
ETCD_ENDPOINTS: "etcd:2379"
REDIS_ADDR: "redis:6379"
CONSUL_ADDR: "consul:8500"
ZOOKEEPER_ENDPOINTS: "zookeeper"
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.16

services:
- name: etcd
image: bitnami/etcd
environment:
ALLOW_NONE_AUTHENTICATION: yes
- name: redis
image: bitnami/redis
environment:
ALLOW_EMPTY_PASSWORD: yes
- name: consul
image: bitnami/consul
- name: zookeeper
image: bitnami/zookeeper
environment:
ALLOW_ANONYMOUS_LOGIN: yes

steps:
- name: test
image: golang:1.16
environment:
ETCD_ENDPOINTS: "etcd:2379"
REDIS_ADDR: "redis:6379"
CONSUL_ADDR: "consul:8500"
ZOOKEEPER_ENDPOINTS: "zookeeper"
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

services:
Expand Down

0 comments on commit 5981262

Please sign in to comment.