@@ -15,13 +15,13 @@ concurrency:
1515 cancel-in-progress : true
1616
1717jobs :
18- Static-Checks :
18+ Bazel-Build-Java8 :
1919 runs-on : ubuntu-latest
2020 timeout-minutes : 30
2121 steps :
2222 - run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
2323 - run : echo "🐧 Job is running on a ${{ runner.os }} server!"
24- - run : echo "🔎 The name of your branch is ${GITHUB_REF } and your repository is ${{ github.repository }}."
24+ - run : echo "🔎 The name of your branch is ${{ github.ref } } and your repository is ${{ github.repository }}."
2525 - name : Check out repository code
2626 uses : actions/checkout@v6
2727 - name : Setup Bazel
@@ -33,13 +33,18 @@ jobs:
3333 disk-cache : ${{ github.workflow }}
3434 # Share repository cache between workflows.
3535 repository-cache : true
36- # Never write to the cache, strictly read-only
37- cache-save : false
36+ # Prevent PRs from polluting cache
37+ cache-save : ${{ github.event_name != 'pull_request' }}
38+ - name : Bazel Output Version
39+ run : bazelisk --version
40+ - name : Java 8 Build
41+ run : bazel build ... --java_language_version=8 --java_runtime_version=8 --build_tag_filters=-conformance_maven
3842 - name : Unwanted Dependencies
3943 run : .github/workflows/unwanted_deps.sh
4044 - name : Cross-artifact Duplicate Classes Check
4145 run : .github/workflows/cross_artifact_dependencies_check.sh
4246 - run : echo "🍏 This job's status is ${{ job.status }}."
47+
4348 Bazel-Tests :
4449 runs-on : ubuntu-latest
4550 timeout-minutes : 30
6267 cache-save : ${{ github.event_name != 'pull_request' }}
6368 - name : Bazel Output Version
6469 run : bazelisk --version
65- - name : Java 8 Build
66- run : bazel build ... --java_language_version=8 --java_runtime_version=8 --build_tag_filters=-conformance_maven
6770 - name : Bazel Test
6871 # Exclude codelab exercises as they are intentionally made to fail
6972 # Exclude maven conformance tests. They are only executed when there's version change.
0 commit comments