Skip to content

Commit b5463e2

Browse files
committed
Test new workflow
1 parent f54142c commit b5463e2

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,16 @@ jobs:
3939
run: bazel build ... --java_language_version=8 --java_runtime_version=8
4040
- name: Bazel Test
4141
# Exclude codelab exercises as they are intentionally made to fail
42-
run: bazelisk test ... --deleted_packages=//codelab/src/test/codelab --test_output=errors
42+
# Exclude maven conformance tests. They are only executed when there's changes to version.
43+
run: bazelisk test ... --deleted_packages=//codelab/src/test/codelab --test_output=errors -- -//conformance/src/test/java/dev/cel/conformance:conformance_maven
44+
- name: Get changed file
45+
id: changed_file
46+
uses: tj-actions/changed-files@v44
47+
with:
48+
files: publish/cel_version.bzl
49+
- name: Run Conformance Maven Test on Version Change
50+
if: steps.changed_file.outputs.any_changed == 'true'
51+
run: bazelisk test //conformance/src/test/java/dev/cel/conformance:conformance_maven --test_output=errors
4352
- name: Unwanted Dependencies
4453
run: .github/workflows/unwanted_deps.sh
4554
- run: echo "🍏 This job's status is ${{ job.status }}."

MODULE.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ maven.install(
112112

113113
maven.install(
114114
name = "maven_conformance",
115-
artifacts = ["dev.cel:cel:0.11.0-SNAPSHOT"],
115+
# artifacts = ["dev.cel:cel:0.11.0-SNAPSHOT"],
116+
artifacts = ["dev.cel:cel:0.10.1"],
116117
repositories = [
117118
"https://maven.google.com",
118119
"https://repo1.maven.org/maven2",

0 commit comments

Comments
 (0)