Skip to content

[fix] 1,修复读写并发问题 2,修复search查询出错不返回err 3,解除健康检查对etcd的依赖 4,golang-lint问题修复 #555

[fix] 1,修复读写并发问题 2,修复search查询出错不返回err 3,解除健康检查对etcd的依赖 4,golang-lint问题修复

[fix] 1,修复读写并发问题 2,修复search查询出错不返回err 3,解除健康检查对etcd的依赖 4,golang-lint问题修复 #555

Workflow file for this run

name: Merge check
on: [push, pull_request]
jobs:
etcd-storage:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.18
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: UT for etcd
run: |
time docker run -d -p 2379:2379 --name etcd quay.io/coreos/etcd etcd -name etcd --advertise-client-urls http://0.0.0.0:2379 --listen-client-urls http://0.0.0.0:2379
while ! nc -z 127.0.0.1 2379; do
sleep 1
done
export TEST_DB_KIND=etcd
export TEST_DB_URI=127.0.0.1:2379
time go test $(go list ./... | grep -v mongo | grep -v third_party | grep -v examples)
embedded-etcd-storage:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.18
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: UT for embedded etcd
run: |
export TEST_DB_KIND=embedded_etcd
go test $(go list ./... | grep -v mongo | grep -v third_party | grep -v examples)