From 0a8b18dde52169fc084d50ed885144c6d3e1ad58 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Thu, 13 Oct 2022 11:47:30 -0700 Subject: [PATCH] Add new CI workflow. Signed-off-by: Yury-Fridlyand --- .github/workflows/sql-doctest.yml | 27 +++++++++++++++++++++++++++ doctest/build.gradle | 4 +++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/sql-doctest.yml diff --git a/.github/workflows/sql-doctest.yml b/.github/workflows/sql-doctest.yml new file mode 100644 index 0000000000..b69c4f4c6e --- /dev/null +++ b/.github/workflows/sql-doctest.yml @@ -0,0 +1,27 @@ +name: SQL Doctest CI + +on: + pull_request: + push: + branches-ignore: + - 'dependabot/**' + paths: + - '**/*.java' + - '**/*.g4' + - '!sql-jdbc/**' + - '**gradle*' + - '**/*.jar' + - '**/*.pom' + - 'doctest/**' + - 'docs/**' + - '.github/workflows/sql-doctest.yml' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Build with Gradle + run: ./gradlew :doctest:doctest diff --git a/doctest/build.gradle b/doctest/build.gradle index 9dd0e9cd91..35aa1c9b7a 100644 --- a/doctest/build.gradle +++ b/doctest/build.gradle @@ -45,7 +45,9 @@ task stopOpenSearch(type: KillProcessTask) doctest.dependsOn startOpenSearch doctest.finalizedBy stopOpenSearch -//build.dependsOn doctest +// Deactivate doctest in the main gradle workflow (./gradlew build), because doctest depends +// on ML plugin and it ruins SQL plugin build if ML plugin is not available (not released) +// build.dependsOn doctest clean.dependsOn(cleanBootstrap) // 2.0.0-alpha1-SNAPSHOT -> 2.0.0.0-alpha1-SNAPSHOT