Skip to content

Commit

Permalink
Check PR against solution branch
Browse files Browse the repository at this point in the history
  • Loading branch information
edeandrea committed Dec 6, 2024
1 parent 36b1385 commit bedcf9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ jobs:
run: ./mvnw -B clean verify -Dmaven.compiler.release=${{ matrix.java }}

check-commit-against-solution-branch:
runs-on: ubuntu-latest
if: (github.actor == 'dependabot[bot]') && (github.repository == 'RedHat-Middleware-Workshops/spring-jkube-external-config') && (github.event_name == 'pull_request')
strategy:
fail-fast: false
matrix:
java:
- '17'
uses: RedHat-Middleware-Workshops/spring-jkube-external-config/.github/workflows/check-against-solution.yml@main
secrets: inherit
with:
java_version: ${{ matrix.java }}
ref: ${{ github.ref }}
15 changes: 5 additions & 10 deletions .github/workflows/check-against-solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ jobs:
check-commit-against-solution-branch:
runs-on: ubuntu-latest
if: github.repository == 'RedHat-Middleware-Workshops/spring-jkube-external-config'
strategy:
fail-fast: false
matrix:
java:
- '17'
name: "check-commit-against-solution-branch-${{ matrix.java }}"
name: "check-commit-against-solution-branch-${{ inputs.java_version }}"
steps:
- uses: actions/checkout@v4
ref: solution
Expand All @@ -37,12 +32,12 @@ jobs:
- name: Show diff
run: git diff main

- name: Setup Java ${{ matrix.java }}
- name: Setup Java ${{ inputs.java_version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
java-version: ${{ inputs.java_version }}
distribution: temurin
cache: maven

- name: Run build and tests with Java ${{ matrix.java }}
run: ./mvnw -B clean verify -Dmaven.compiler.release=${{ matrix.java }}
- name: Run build and tests with Java ${{ inputs.java_version }}
run: ./mvnw -B clean verify -Dmaven.compiler.release=${{ inputs.java_version }}

0 comments on commit bedcf9e

Please sign in to comment.