diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9da8609..6627bbb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,13 +63,13 @@ jobs: - name: Run Go unit tests run: go test -v -race -timeout 3m -coverprofile=coverage.out ./... - name: Go coverage format - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && github.repository == 'hasura/go-graphql-client' }} run: | go get github.com/boumenot/gocover-cobertura go install github.com/boumenot/gocover-cobertura gocover-cobertura < coverage.out > coverage.xml - name: Code Coverage Summary Report - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && github.repository == 'hasura/go-graphql-client' }} uses: irongut/CodeCoverageSummary@v1.3.0 with: filename: coverage.xml @@ -83,7 +83,7 @@ jobs: thresholds: "60 80" - name: Add Coverage PR Comment uses: marocchino/sticky-pull-request-comment@v2 - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && github.repository == 'hasura/go-graphql-client' }} with: path: code-coverage-results.md - name: Dump docker logs on failure