Skip to content

Commit

Permalink
Add testing for projects with the updated to parent to ensure there a…
Browse files Browse the repository at this point in the history
…re no surprises.

Signed-off-by: James R. Perkins <[email protected]>
  • Loading branch information
jamezp committed Jun 6, 2024
1 parent 8e034a4 commit b8ce9e9
Showing 1 changed file with 80 additions and 11 deletions.
91 changes: 80 additions & 11 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ on:
push:
branches:
- 'main'
paths:
- '.github/workflows/maven.yml'
- '**/pom.xml'
- 'ide-config/**'
- 'parent-pom/**'
- 'resteasy-checkstyle-config/**'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/maven.yml'
- '**/pom.xml'
- 'ide-config/**'
- 'parent-pom/**'
- 'resteasy-checkstyle-config/**'

# Only run the latest job
concurrency:
Expand All @@ -19,20 +31,77 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
java: ['11', '17', '21']

steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
- name: Checkout Project
uses: actions/checkout@v4
with:
path: resteasy-dev-tools
- name: Set up JDKs
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
java-version: |
11
17
21
distribution: 'temurin'
architecture: x64
cache: 'maven'
- name: Build with Maven Java ${{ matrix.java }}}
run: |
mvn clean install -U -B -fae

- name: Install the snapshot
run: |
cd resteasy-dev-tools
mvn -B -ntp install
- name: Check out RESTEasy Guice
uses: actions/checkout@v4
with:
repository: resteasy/resteasy-guice
path: resteasy-guice
- name: Test RESTEasy Guice with updated parent
run: |
cd resteasy-guice
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
git diff pom.xml
mvn -B -ntp install -Djava11.home=${{env.JAVA_HOME_11_X64}} -Djava17.home=${{env.JAVA_HOME_17_X64}}
- name: Check out RESTEasy MicroProfile
uses: actions/checkout@v4
with:
repository: resteasy/resteasy-microprofile
path: resteasy-microprofile
- name: Test RESTEasy MicroProfile with updated parent
run: |
cd resteasy-microprofile
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
git diff pom.xml
mvn -B -ntp install -Djava11.home=${{env.JAVA_HOME_11_X64}} -Djava17.home=${{env.JAVA_HOME_17_X64}}
- name: Check out RESTEasy
uses: actions/checkout@v4
with:
repository: resteasy/resteasy
path: resteasy
- name: Test RESTEasy with updated parent
run: |
cd resteasy
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
cd resteasy-bom
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
cd ../resteasy-dependencies-bom
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
cd ..
git diff pom.xml
mvn -B -ntp install -Djava11.home=${{env.JAVA_HOME_11_X64}} -Djava17.home=${{env.JAVA_HOME_17_X64}}
- name: Check out RESTEasy RxJava
uses: actions/checkout@v4
with:
repository: resteasy/resteasy-rxjava
path: resteasy-rxjava
- name: Test RESTEasy RxJava with updated parent
run: |
cd resteasy-rxjava
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
git diff pom.xml
mvn -B -ntp install -Djava11.home=${{env.JAVA_HOME_11_X64}} -Djava17.home=${{env.JAVA_HOME_17_X64}}

0 comments on commit b8ce9e9

Please sign in to comment.