Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing for projects with the updated to parent to ensure there a… #33

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 81 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,78 @@ 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/resteasy-bom
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
mvn clean install
cd ../resteasy-dependencies-bom
mvn -B -ntp versions:update-parent -DallowSnapshots=true -N
mvn clean install
cd ..
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}}