From 76f3428c4991f85775fe2cb85dc11b18cbadbd3a Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Thu, 9 Apr 2026 19:41:11 -0400 Subject: [PATCH] Use new PR workflow --- .github/workflows/maven.yml | 30 ------------------------------ .github/workflows/pr.yml | 9 +++++++++ 2 files changed, 9 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/maven.yml create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml deleted file mode 100644 index 20c50711..00000000 --- a/.github/workflows/maven.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - -name: Build - -on: - pull_request: - branches: [ main, 4.3.x, 4.2.x ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v6 - - name: Set up JDK - uses: actions/setup-java@v5 - with: - java-version: 17 - distribution: 'temurin' - - name: Cache local Maven repository - uses: actions/cache@v5 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - name: Build with Maven - run: ./mvnw clean install -Pdocs -B -U -Pspring diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..d10e429d --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,9 @@ +name: PR + +on: + pull_request: + branches: [ 4.3.x ] + +jobs: + build: + uses: spring-cloud/spring-cloud-github-actions/.github/workflows/pr.yml@main