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 eec5a791b8..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