| ################################################################################ |
| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| ################################################################################ |
| |
| name: UTCase ESLib on JDK 11 |
| |
| on: |
| push: |
| paths: |
| - 'paimon-api/**' |
| - 'paimon-common/**' |
| - 'paimon-eslib/**' |
| - 'paimon-test-utils/**' |
| - 'pom.xml' |
| - '.github/workflows/utcase-eslib.yml' |
| pull_request: |
| paths: |
| - 'paimon-api/**' |
| - 'paimon-common/**' |
| - 'paimon-eslib/**' |
| - 'paimon-test-utils/**' |
| - 'pom.xml' |
| - '.github/workflows/utcase-eslib.yml' |
| |
| permissions: |
| contents: read |
| |
| env: |
| JDK_VERSION: 11 |
| MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=30 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true |
| |
| concurrency: |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }} |
| cancel-in-progress: true |
| |
| jobs: |
| eslib_test: |
| runs-on: ubuntu-latest |
| timeout-minutes: 30 |
| |
| steps: |
| - name: Checkout code |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 |
| with: |
| persist-credentials: false |
| |
| - name: Set up JDK ${{ env.JDK_VERSION }} |
| uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5 |
| with: |
| java-version: ${{ env.JDK_VERSION }} |
| distribution: 'temurin' |
| |
| - name: Build ESLib dependencies |
| run: mvn -T 2C -B -ntp clean install -DskipTests -Ppaimon-eslib -pl paimon-eslib -am |
| |
| - name: Test ESLib |
| run: mvn -B -ntp verify -Ppaimon-eslib -pl paimon-eslib |
| env: |
| MAVEN_OPTS: -Xmx4096m |