From 87ac643ad32a39c3f535b1b66e6197e3622f9ecd Mon Sep 17 00:00:00 2001 From: Heng Qin Date: Mon, 15 Jan 2024 19:14:37 +0800 Subject: [PATCH] [#768] improvement(CI): Setting the workflow dependencies --- .github/workflows/build.yml | 7 ++----- .github/workflows/integration-test.yml | 7 +++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 748aeff0599..9392645382d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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' @@ -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 diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 51ad704ecaf..d4bb574fee6 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -7,6 +7,11 @@ 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 }} @@ -17,6 +22,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.event.workflow_run.head_branch }} - uses: dorny/paths-filter@v2 id: filter with: