diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1bfe2d4..53289c5 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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: @@ -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}}