Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#1079] improvement(CI): Modify the pipeline check logic in regards to code changes (#1469)

qqqttt123ce1d1b861e82
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5d6874dbf4..748aeff059 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -47,7 +47,21 @@ jobs:
outputs:
source_changes: ${{ steps.filter.outputs.source_changes }}
- # This workflow contains a single job called "build"
+ compile-check:
+ runs-on: ubuntu-latest
+ needs: changes
+ if: needs.changes.outputs.source_changes != 'true'
+ steps:
+ - uses: actions/checkout@v3
+
+ - uses: actions/setup-java@v3
+ with:
+ java-version: 8
+ distribution: 'temurin'
+
+ - name: Build with Gradle
+ run: ./gradlew build -x test -PjdkVersion=8
+
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest