Skip to content

Commit 17d8315

Browse files
committed
Split workflow
1 parent f6f1cac commit 17d8315

2 files changed

Lines changed: 35 additions & 10 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
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+
- name: Unwanted Dependencies
30+
run: .github/workflows/unwanted_deps.sh
31+
- name: Cross Artifact Duplicate Classes Check
32+
run: .github/workflows/cross_artifact_dependencies_check.sh
33+
- run: echo "🍏 This job's status is ${{ job.status }}."
34+
1835
Bazel-Tests:
1936
runs-on: ubuntu-latest
2037
timeout-minutes: 30
@@ -25,7 +42,7 @@ jobs:
2542
- name: Check out repository code
2643
uses: actions/checkout@v6
2744
- name: Setup Bazel
28-
uses: bazel-contrib/setup-bazel@0.14.0
45+
uses: bazel-contrib/setup-bazel@0.18.0
2946
with:
3047
# Avoid downloading Bazel every time.
3148
bazelisk-cache: true
@@ -41,13 +58,27 @@ jobs:
4158
# Exclude codelab exercises as they are intentionally made to fail
4259
# Exclude maven conformance tests. They are only executed when there's version change.
4360
run: bazelisk test ... --deleted_packages=//codelab/src/test/codelab --test_output=errors --test_tag_filters=-conformance_maven --build_tag_filters=-conformance_maven
61+
- run: echo "🍏 This job's status is ${{ job.status }}."
4462

45-
# -- Start of Maven Conformance Tests (Ran only when there's version changes) --
46-
- name: Get changed file
63+
64+
# -- Start of Maven Conformance Tests (Ran only when there's version changes) --
65+
Maven-Conformance:
66+
runs-on: ubuntu-latest
67+
timeout-minutes: 30
68+
steps:
69+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
70+
- run: echo "🐧 Job is running on a ${{ runner.os }} server!"
71+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
72+
- name: Check out repository code
73+
uses: actions/checkout@v6
74+
- name: Get changed files
4775
id: changed_file
4876
uses: tj-actions/changed-files@v46
4977
with:
5078
files: publish/cel_version.bzl
79+
- name: Setup Bazel
80+
if: steps.changed_file.outputs.any_changed == 'true'
81+
uses: bazel-contrib/setup-bazel@0.18.0
5182
- name: Verify Version Consistency
5283
if: steps.changed_file.outputs.any_changed == 'true'
5384
run: |
@@ -72,10 +103,4 @@ jobs:
72103
- name: Run Conformance Maven Test on Version Change
73104
if: steps.changed_file.outputs.any_changed == 'true'
74105
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
79-
- name: Cross Artifact Duplicate Classes Check
80-
run: .github/workflows/cross_artifact_dependencies_check.sh
81106
- run: echo "🍏 This job's status is ${{ job.status }}."

publish/cel_version.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
"""Maven artifact version for CEL."""
15-
CEL_VERSION = "0.12.0-SNAPSHOT"
15+
CEL_VERSION = "0.11.1"

0 commit comments

Comments
 (0)