Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
java: [8, 11]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
Expand Down Expand Up @@ -60,6 +62,15 @@ jobs:
name: artifacts
path: ~/artifacts

- name: Generate Code Coverage Report
run: bazel coverage //src/test/... --combined_report=lcov

- name: Upload Code Coverage Report
uses: codecov/codecov-action@v1
with:
name: actions ${{ matrix.java }}
files: ./bazel-out/_coverage/_coverage_report.dat

license-header:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![codecov](https://codecov.io/gh/googleapis/gapic-generator-java/branch/master/graph/badge.svg?token=3RUU37GX9U)](https://codecov.io/gh/googleapis/gapic-generator-java)
# API Client Generator for Java

A generator for protocol buffer described APIs for and in Java.
Expand Down
21 changes: 21 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
codecov:
notify:
require_ci_to_pass: yes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this a non-blocking check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. To set non block status check, make the project informational: true below.


coverage:
precision: 2
round: down
range: 70...100

status:
project: true
default:
informational: true
patch: true
default:
informatioanl: true
changes: false

comment:
layout: "header, diff, uncovered"
behavior: default # update if exists else create new