diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml deleted file mode 100644 index 878d5de58..000000000 --- a/.github/workflows/maven.yml +++ /dev/null @@ -1,31 +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 - - strategy: - matrix: - java: ["17"] - - steps: - - uses: actions/checkout@v6 - - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v5 - with: - distribution: 'temurin' - java-version: ${{ matrix.java }} - cache: 'maven' - - name: Build with Maven - run: ./mvnw clean install -B -U -P sonar - - uses: codecov/codecov-action@v6 - with: - fail_ci_if_error: false diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 000000000..f25d15521 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,9 @@ +name: PR + +on: + pull_request: + branches: [ main, 4.3.x, 4.2.x ] + +jobs: + build: + uses: spring-cloud/spring-cloud-github-actions/.github/workflows/pr.yml@main