Skip to content

Commit

Permalink
chore(ci): Separate codecov to optimize presubmit check speed [ggj][e…
Browse files Browse the repository at this point in the history
…ngx][build] (#670)

* fix: add common srcs to test, check test targets only in codecov

* chore: Split codecov into a separate job
  • Loading branch information
miraleung authored Feb 24, 2021
1 parent acd6a79 commit a2f9b85
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ jobs:
path: ~/.cache/bazel/*/*/*/gapic_generator_java/bazel-out/*/testlogs/*
retention-days: 5

- name: Java Linter
run: bazel --batch build //:google_java_format_verification

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
java-version: 8
- run: java -version

- name: Generate Code Coverage Report
# Run only test targets, and not golden_update targets.
run: bazel coverage $(bazel query "src/test/..." | grep "Test$") --combined_report=lcov
Expand All @@ -68,9 +80,6 @@ jobs:
name: actions ${{ matrix.java }}
files: ./bazel-out/_coverage/_coverage_report.dat

- name: Java Linter
run: bazel --batch build //:google_java_format_verification

license-header:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit a2f9b85

Please sign in to comment.