Skip to content

Commit

Permalink
[apache#768] improvement(CI): Setting the workflow dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng Qin committed Jan 15, 2024
1 parent 3a770cc commit c99c3ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 8, 11, 17 ]
timeout-minutes: 30
needs: changes
if: needs.changes.outputs.source_changes == 'true'
Expand All @@ -78,11 +75,11 @@ jobs:

- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
java-version: 8
distribution: 'temurin'

- name: Build with Gradle
run: ./gradlew build -PskipITs -PjdkVersion=${{ matrix.java-version }}
run: ./gradlew build -PskipITs -PjdkVersion=8

- name: Upload unit tests report
uses: actions/upload-artifact@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ on:
branches: [ "main", "branch-*" ]
pull_request:
branches: [ "main", "branch-*" ]
workflow_run:
workflows:
- build
types:
- completed

concurrency:
group: ${{ github.worklfow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_requests' }}

jobs:
changes:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit c99c3ee

Please sign in to comment.