|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | +# contributor license agreements. See the NOTICE file distributed with |
| 3 | +# this work for additional information regarding copyright ownership. |
| 4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 5 | +# (the "License"); you may not use this file except in compliance with |
| 6 | +# the License. You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +name: PostCommit Java Delta IO Dataflow |
| 17 | + |
| 18 | +on: |
| 19 | + schedule: |
| 20 | + - cron: '30 4/6 * * *' |
| 21 | + pull_request_target: |
| 22 | + paths: [ 'release/trigger_all_tests.json', '.github/trigger_files/beam_PostCommit_Java_Delta_IO_Dataflow.json' ] |
| 23 | + workflow_dispatch: |
| 24 | + |
| 25 | +# Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event |
| 26 | +permissions: |
| 27 | + actions: write |
| 28 | + pull-requests: write |
| 29 | + checks: write |
| 30 | + contents: read |
| 31 | + deployments: read |
| 32 | + id-token: none |
| 33 | + issues: write |
| 34 | + discussions: read |
| 35 | + packages: read |
| 36 | + pages: read |
| 37 | + repository-projects: read |
| 38 | + security-events: read |
| 39 | + statuses: read |
| 40 | + |
| 41 | +# This allows a subsequently queued workflow run to interrupt previous runs |
| 42 | +concurrency: |
| 43 | + group: '${{ github.workflow }} @ ${{ github.event.pull_request.number || github.sha || github.head_ref || github.ref }}-${{ github.event.schedule || github.event.comment.id || github.event.sender.login }}' |
| 44 | + cancel-in-progress: true |
| 45 | + |
| 46 | +env: |
| 47 | + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} |
| 48 | + GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }} |
| 49 | + GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }} |
| 50 | + |
| 51 | +jobs: |
| 52 | + beam_PostCommit_Java_Delta_IO_Dataflow: |
| 53 | + if: | |
| 54 | + github.event_name == 'pull_request_target' || |
| 55 | + github.event_name == 'workflow_dispatch' || |
| 56 | + (github.event_name == 'schedule' && github.repository == 'apache/beam') || |
| 57 | + github.event.comment.body == 'Run PostCommit Java Delta IO Dataflow' |
| 58 | + runs-on: [self-hosted, ubuntu-24.04, main] |
| 59 | + timeout-minutes: 120 |
| 60 | + name: ${{ matrix.job_name }} (${{ matrix.job_phrase }}) |
| 61 | + strategy: |
| 62 | + matrix: |
| 63 | + job_name: ["beam_PostCommit_Java_Delta_IO_Dataflow"] |
| 64 | + job_phrase: ["Run PostCommit Java Delta IO Dataflow"] |
| 65 | + steps: |
| 66 | + - uses: actions/checkout@v6 |
| 67 | + - name: Setup repository |
| 68 | + uses: ./.github/actions/setup-action |
| 69 | + with: |
| 70 | + comment_phrase: ${{ matrix.job_phrase }} |
| 71 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 72 | + github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }}) |
| 73 | + - name: Setup environment |
| 74 | + uses: ./.github/actions/setup-environment-action |
| 75 | + - name: Run PostCommit Java Delta IO Dataflow |
| 76 | + uses: ./.github/actions/gradle-command-self-hosted-action |
| 77 | + with: |
| 78 | + gradle-command: :sdks:java:io:delta:dataflowIntegrationTest --info |
0 commit comments