From 9f87e702c9b421453257092e655f389161934b84 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Thu, 23 Feb 2023 20:16:45 +0100 Subject: [PATCH] GH-138 - Set up integration builds against upcoming Spring Boot snapshots and milestones Set up dedicated GitHub actions workflow to run tests against upcoming Spring Boot snapshots and milestones. Introduced with-preview-repos build profile to activate the Maven repositories containing snapshots and milestones. --- .github/workflows/integration.yaml | 28 ++++++++++++++++++++++++++++ pom.xml | 22 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/integration.yaml diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml new file mode 100644 index 00000000..f40b1620 --- /dev/null +++ b/.github/workflows/integration.yaml @@ -0,0 +1,28 @@ +name: Compatibility Build + +on: + schedule: + - cron: '5 6 * * *' + +jobs: + integration: + strategy: + matrix: + profile: ['3.0.4-SNAPSHOT', '3.1.0-SNAPSHOT'] + name: Build against Boot ${{ matrix.profile }} + runs-on: ubuntu-latest + + steps: + + - name: Check out sources + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 17 + cache: 'maven' + + - name: Build with Maven + run: ./mvnw -B -Pwith-preview-repos -Dspring-boot.version=${{ matrix.version }} diff --git a/pom.xml b/pom.xml index 933c9999..c58fa40d 100644 --- a/pom.xml +++ b/pom.xml @@ -103,6 +103,28 @@ limitations under the License. + + + + with-preview-repos + + + spring-milestone + https://repo.spring.io/milestone + + false + + + + spring-snapshot + https://repo.spring.io/snapshot + + false + + + + + prepare-release