Skip to content

Commit a2f9b85

Browse files
authored
chore(ci): Separate codecov to optimize presubmit check speed [ggj][engx][build] (#670)
* fix: add common srcs to test, check test targets only in codecov * chore: Split codecov into a separate job
1 parent acd6a79 commit a2f9b85

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ jobs:
5858
path: ~/.cache/bazel/*/*/*/gapic_generator_java/bazel-out/*/testlogs/*
5959
retention-days: 5
6060

61+
- name: Java Linter
62+
run: bazel --batch build //:google_java_format_verification
63+
64+
coverage:
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v2
68+
- uses: actions/setup-go@v2
69+
with:
70+
java-version: 8
71+
- run: java -version
72+
6173
- name: Generate Code Coverage Report
6274
# Run only test targets, and not golden_update targets.
6375
run: bazel coverage $(bazel query "src/test/..." | grep "Test$") --combined_report=lcov
@@ -68,9 +80,6 @@ jobs:
6880
name: actions ${{ matrix.java }}
6981
files: ./bazel-out/_coverage/_coverage_report.dat
7082

71-
- name: Java Linter
72-
run: bazel --batch build //:google_java_format_verification
73-
7483
license-header:
7584
runs-on: ubuntu-latest
7685
steps:

0 commit comments

Comments
 (0)