[fix] change reference to consistent with transfer repo from personal… #105
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge check | |
on: [ push, pull_request ] | |
jobs: | |
ut-for-etcd: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.16 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.16 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: UT | |
run: | | |
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 | |
go test $(go list ./... | grep -v embedded | grep -v examples) -cover -covermode atomic -coverprofile coverage.out | |
ut-for-embedded_etcd: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.16 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.16 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: UT | |
run: | | |
export TEST_DB_KIND=embedded_etcd | |
go test $(go list ./... | grep -v remote | grep -v examples) -cover -covermode atomic -coverprofile coverage.out |