git.iko.soy/typeable/oauth2-proxy
on master help sign in
ci: avoid running qlty coverage report for PRs (#3316)
d5ea33bJan Larwig
.github/workflows/ci.yml+5−5
@@ -33,10 +33,6 @@ jobs:
33 run: |
33 run: |
34 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
34 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
35
35
36− - name: Install gcov2lcov
37− run: |
38− go install github.com/jandelgado/gcov2lcov@latest
39−
40 - name: Verify Code Generation
36 - name: Verify Code Generation
41 run: |
37 run: |
42 make verify-generate
38 make verify-generate
@@ -61,10 +57,14 @@ jobs:
61 make test
57 make test
62
58
63 - name: Generate Coverage Report
59 - name: Generate Coverage Report
60+ if: github.event_name == 'push'
64 run: |
61 run: |
62+ go install github.com/jandelgado/gcov2lcov@latest
65 gcov2lcov -infile=c.out -outfile=lcov.info
63 gcov2lcov -infile=c.out -outfile=lcov.info
66
64
65+ - name: Upload Coverage Report
66+ if: github.event_name == 'push'
67− - uses: qltysh/qlty-action/coverage@v2
67+ uses: qltysh/qlty-action/coverage@v2
68 with:
68 with:
69 oidc: true
69 oidc: true
70 files: lcov.info
70 files: lcov.info