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 7f43c67
Showing 1 changed file with 99 additions and 11 deletions.
110 changes: 99 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,96 @@ 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 Examples
uses: actions/checkout@v4
with:
repository: resteasy/resteasy-examples
path: resteasy-examples
- name: Test RESTEasy Examples with updated parent
run: |
cd resteasy-examples
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 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 Extensions
uses: actions/checkout@v4
with:
repository: resteasy/resteasy-extensions
path: resteasy-extensions
- name: Test RESTEasy Extensions with updated parent
run: |
cd resteasy-extensions
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
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 7f43c67

Please sign in to comment.