...

Text file src/github.com/99designs/gqlgen/.github/workflows/check-coverage

Documentation: github.com/99designs/gqlgen/.github/workflows

     1#!/bin/bash
     2
     3set -euo pipefail
     4go install github.com/mattn/goveralls@latest
     5
     6go test -covermode atomic -coverprofile=/tmp/coverage.out.tmp -coverpkg=./... $(go list github.com/99designs/gqlgen/... | grep -v _examples)
     7# ignore protobuf files
     8cat /tmp/coverage.out.tmp | grep -v ".pb.go" > /tmp/coverage.out
     9
    10goveralls -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'

View as plain text