@@ -15,6 +15,29 @@ concurrency:
1515 cancel-in-progress : true
1616
1717jobs :
18+ Static-Checks :
19+ runs-on : ubuntu-latest
20+ timeout-minutes : 30
21+ steps :
22+ - run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
23+ - 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 }}."
25+ - name : Check out repository code
26+ uses : actions/checkout@v6
27+ - name : Setup Bazel
28+ uses : bazel-contrib/setup-bazel@0.18.0
29+ with :
30+ # Avoid downloading Bazel every time.
31+ bazelisk-cache : true
32+ # Store build cache per workflow.
33+ disk-cache : ${{ github.workflow }}
34+ # Share repository cache between workflows.
35+ repository-cache : true
36+ - name : Unwanted Dependencies
37+ run : .github/workflows/unwanted_deps.sh
38+ - name : Cross Artifact Duplicate Classes Check
39+ run : .github/workflows/cross_artifact_dependencies_check.sh
40+ - run : echo "🍏 This job's status is ${{ job.status }}."
1841 Bazel-Tests :
1942 runs-on : ubuntu-latest
2043 timeout-minutes : 30
2548 - name : Check out repository code
2649 uses : actions/checkout@v6
2750 - name : Setup Bazel
28- uses : bazel-contrib/setup-bazel@0.14 .0
51+ uses : bazel-contrib/setup-bazel@0.18 .0
2952 with :
3053 # Avoid downloading Bazel every time.
3154 bazelisk-cache : true
@@ -41,13 +64,33 @@ jobs:
4164 # Exclude codelab exercises as they are intentionally made to fail
4265 # Exclude maven conformance tests. They are only executed when there's version change.
4366 run : bazelisk test ... --deleted_packages=//codelab/src/test/codelab --test_output=errors --test_tag_filters=-conformance_maven --build_tag_filters=-conformance_maven
67+ - run : echo "🍏 This job's status is ${{ job.status }}."
4468
45- # -- Start of Maven Conformance Tests (Ran only when there's version changes) --
46- - name : Get changed file
69+ # -- Start of Maven Conformance Tests (Ran only when there's version changes) --
70+ Maven-Conformance :
71+ runs-on : ubuntu-latest
72+ timeout-minutes : 30
73+ steps :
74+ - run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
75+ - run : echo "🐧 Job is running on a ${{ runner.os }} server!"
76+ - run : echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
77+ - name : Check out repository code
78+ uses : actions/checkout@v6
79+ - name : Get changed files
4780 id : changed_file
4881 uses : tj-actions/changed-files@v46
4982 with :
5083 files : publish/cel_version.bzl
84+ - name : Setup Bazel
85+ if : steps.changed_file.outputs.any_changed == 'true'
86+ uses : bazel-contrib/setup-bazel@0.18.0
87+ with :
88+ # Avoid downloading Bazel every time.
89+ bazelisk-cache : true
90+ # Store build cache per workflow.
91+ disk-cache : ${{ github.workflow }}
92+ # Share repository cache between workflows.
93+ repository-cache : true
5194 - name : Verify Version Consistency
5295 if : steps.changed_file.outputs.any_changed == 'true'
5396 run : |
72115 - name : Run Conformance Maven Test on Version Change
73116 if : steps.changed_file.outputs.any_changed == 'true'
74117 run : bazelisk test //conformance/src/test/java/dev/cel/conformance:conformance_maven --test_output=errors
75- # -- End of Maven Conformance Tests --
76-
77- - name : Unwanted Dependencies
78- run : .github/workflows/unwanted_deps.sh
79118 - run : echo "🍏 This job's status is ${{ job.status }}."
0 commit comments