Skip to content

Update README.md

Update README.md #17

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Start Consul Container
run: |
docker run -d --rm --name=consul -p 8500:8500 -e CONSUL_BIND_INTERFACE=eth0 consul:1.7.2
- name: write test config
run: "sed -i 's/172.17.0.2/localhost/mg' testdata/test.config"
- name: Test
run: go test -v -covermode=count -coverprofile=coverage.out
- name: actions-goveralls
uses: shogo82148/actions-goveralls@v1.2.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-profile: coverage.out