github.com/shippio/gqlgen@v0.0.0-20220912092219-633ea699ef07/.github/workflows/check-coverage (about)

     1  #!/bin/bash
     2  
     3  set -euo pipefail
     4  GO111MODULE=off go get github.com/mattn/goveralls
     5  
     6  go test -covermode atomic -coverprofile=/tmp/coverage.out.tmp -coverpkg=./... $(go list github.com/99designs/gqlgen/... | grep -v _examples)
     7  # ignore protobuf files
     8  cat /tmp/coverage.out.tmp | grep -v ".pb.go" > /tmp/coverage.out
     9  
    10  goveralls -coverprofile=/tmp/coverage.out -service=github -ignore='_examples/*/*,_examples/*/*/*,integration/*,integration/*/*,codegen/testserver/*/*,plugin/federation/testdata/*/*/*,*/generated.go,*/*/generated.go,*/*/*/generated.go,graphql/executable_schema_mock.go'