Skip to content

Commit

Permalink
Enable dependency caching for coverage (apache#4880)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-ai authored Aug 25, 2022
1 parent 3da7ea9 commit 451c963
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Run Tests By Bazel
name: Build and Run Tests by Bazel
on:
pull_request_target:
types: [opened, reopened, synchronize]
Expand All @@ -9,7 +9,7 @@ on:
- bazel
jobs:
build:
name: "Java (${{ matrix.os }})"
name: "bazel-compile (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
with:
java-version: "8"
distribution: "adopt"
cache: "maven"
- name: Generate coverage report
run: mvn -B test --file pom.xml
run: mvn -B test -T 2C --file pom.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Run Tests By Maven
name: Build and Run Tests by Maven
on:
pull_request:
types: [opened, reopened, synchronize]
Expand All @@ -20,6 +20,6 @@ jobs:
with:
java-version: ${{ matrix.jdk }}
distribution: "adopt"
cache: maven
cache: "maven"
- name: Build with Maven
run: mvn -B package -T 1C --file pom.xml
run: mvn -B package -T 2C --file pom.xml

0 comments on commit 451c963

Please sign in to comment.