File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : dummy
2-
1+ name : CI
32on :
4- workflow_dispatch :
5- push :
63 pull_request :
4+ types : [opened, reopened]
5+ push :
6+ branches : ["**"]
7+ tags :
8+ - " v[0-9]+.[0-9]+.[0-9]+"
9+ - " v[0-9]+.[0-9]+.[0-9]+-*"
710
811jobs :
9- dummy :
10- runs-on : ubuntu-latest
12+ test :
13+ name : Run tests
14+ runs-on : ubuntu-20.04
15+ services :
16+ consul :
17+ image : consul:1.9.13 # v0.6.4
18+ ports : [ "8500:8500" ]
19+ env :
20+ CONSUL_LOCAL_CONFIG : ' {"session_ttl_min": "1s"}'
21+ CONSUL_BIND_INTERFACE : eth0
22+ etcd :
23+ image : quay.io/coreos/etcd:v3.0.17 # v3.5.1
24+ ports : [ "4001:4001" ]
25+ env :
26+ ETCD_ADVERTISE_CLIENT_URLS : http://127.0.0.1:4001
27+ ETCD_LISTEN_CLIENT_URLS : http://0.0.0.0:4001
28+ zookeeper :
29+ image : zookeeper:3.7.0
30+ ports : [ "2181:2181" ]
1131 steps :
12- -
13- name : Checkout
14- uses : actions/checkout@v2
32+ - uses : actions/checkout@v2
33+ - uses : actions/setup-go@v2
34+ with :
35+ go-version : ' ^1.17.5'
36+ - run : cd tools && go install github.com/GeertJohan/fgt github.com/mattn/goveralls golang.org/x/lint golang.org/x/tools/cmd/cover
37+ - run : script/validate-gofmt
38+ - run : go vet ./...
39+ # - run: fgt /home/runner/go/bin/lint ./...
40+ - run : go test -v -race ./...
41+ env :
42+ LIBKV_TEST_SHORT_TIMEOUT : 10s
43+ - run : script/coverage
44+ - run : goveralls -service=travis-ci -coverprofile=goverage.report
You can’t perform that action at this time.
0 commit comments