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 87ac643
Show file tree
Hide file tree
Showing 2 changed files with 9 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
7 changes: 7 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit 87ac643

Please sign in to comment.