diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 02088304..b6b99487 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -3,8 +3,12 @@ name: Go on: push: branches: [ master ] + paths-ignore: + - '**.md' pull_request: branches: [ master ] + paths-ignore: + - '**.md' jobs: build: @@ -19,3 +23,9 @@ jobs: - name: Test run: go test -v ./... + + - name: Test + run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic + + - name: Coverage + run: bash <(curl -s https://codecov.io/bash) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 384d3547..00000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: go - -go: - - 1.17.x - - tip - -before_install: - - go get -t -v ./... - -script: - - go test -race -coverprofile=coverage.txt -covermode=atomic - -after_success: - - bash <(curl -s https://codecov.io/bash) \ No newline at end of file