|
| 1 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 2 | +# you may not use this file except in compliance with the License. |
| 3 | +# You may obtain a copy of the License at |
| 4 | +# |
| 5 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | +# |
| 7 | +# Unless required by applicable law or agreed to in writing, software |
| 8 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 | +# See the License for the specific language governing permissions and |
| 11 | +# limitations under the License. |
| 12 | + |
| 13 | +name: Java Glue Integration |
| 14 | + |
| 15 | +on: |
| 16 | + push: |
| 17 | + branches: |
| 18 | + - main |
| 19 | + paths: |
| 20 | + - java/lance-namespace-glue/** |
| 21 | + - .github/workflows/java-integ-glue.yml |
| 22 | + pull_request_target: |
| 23 | + types: |
| 24 | + - opened |
| 25 | + - synchronize |
| 26 | + - ready_for_review |
| 27 | + - reopened |
| 28 | + paths: |
| 29 | + - java/lance-namespace-glue/** |
| 30 | + - .github/workflows/java-integ-glue.yml |
| 31 | + workflow_dispatch: |
| 32 | + |
| 33 | +concurrency: |
| 34 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 35 | + cancel-in-progress: true |
| 36 | + |
| 37 | +jobs: |
| 38 | + integration-test: |
| 39 | + runs-on: ubuntu-24.04 |
| 40 | + timeout-minutes: 30 |
| 41 | + steps: |
| 42 | + - name: Checkout |
| 43 | + uses: actions/checkout@v4 |
| 44 | + with: |
| 45 | + ref: ${{ github.event.pull_request.head.sha || github.sha }} |
| 46 | + - name: Set up JDK 17 |
| 47 | + uses: actions/setup-java@v4 |
| 48 | + with: |
| 49 | + java-version: "17" |
| 50 | + distribution: "temurin" |
| 51 | + cache: "maven" |
| 52 | + - name: Build |
| 53 | + run: make build-java |
| 54 | + - name: Run integration tests |
| 55 | + env: |
| 56 | + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
| 57 | + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
| 58 | + AWS_REGION: ${{ secrets.AWS_REGION }} |
| 59 | + AWS_S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }} |
| 60 | + run: make java-integ-test-glue |
0 commit comments