Skip to content

Commit

Permalink
Coveralls fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Mar 4, 2020
1 parent 41acc75 commit 5a1a544
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-coverage
Original file line number Diff line number Diff line change
@@ -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/*'
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a1a544

Please sign in to comment.