From 5a1a54463628a2ce3fe9dc67e70e120a42515d56 Mon Sep 17 00:00:00 2001 From: Michael Tibben Date: Wed, 4 Mar 2020 21:29:29 +1100 Subject: [PATCH] Coveralls fixes --- .github/workflows/check-coverage | 6 +++--- .github/workflows/ci.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-coverage b/.github/workflows/check-coverage index 99d4cd331b0..79362aa5e7b 100755 --- a/.github/workflows/check-coverage +++ b/.github/workflows/check-coverage @@ -1,7 +1,7 @@ #!/bin/bash set -euo pipefail -go get github.com/mattn/goveralls +GO111MODULE=off go get github.com/mattn/goveralls -go test -coverprofile=/tmp/coverage.out -coverpkg=./... $(go list github.com/99designs/gqlgen/... | grep -v example) -goveralls -coverprofile=/tmp/coverage.out -service=circle-ci -repotoken=$REPOTOKEN -ignore='example/*/*,example/*/*/*,integration/*,integration/*/*,codegen/testserver/*' +go test -covermode atomic -coverprofile=/tmp/coverage.out -coverpkg=./... $(go list github.com/99designs/gqlgen/... | grep -v example) +goveralls -coverprofile=/tmp/coverage.out -service=github -ignore='example/*/*,example/*/*/*,integration/*,integration/*/*,codegen/testserver/*' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b18fb3cada1..a5bef6621d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,15 +25,15 @@ jobs: - run: go mod download - run: go test -race ./... - cover: + coverage: runs-on: ubuntu-latest container: golang:1.13 - env: - REPOTOKEN: ${{ secrets.COVERALLS_TOKEN }} steps: - uses: actions/checkout@v1 - run: go mod download - run: .github/workflows/check-coverage + env: + COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} integration: runs-on: ubuntu-latest