Skip to content

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

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

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

Workflow file for this run

# 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 RESTEasy Development Tools
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:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
path: resteasy-dev-tools
- name: Set up JDKs
uses: actions/setup-java@v4
with:
java-version: |
11
17
21
distribution: 'temurin'
architecture: x64
cache: 'maven'
- 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}}