fix(build): maven config for release plugin #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 17, 19 ] | |
jakarta: [ 9, 10 ] | |
name: Build w/o tests (Java ${{ matrix.java }}, Jakarta EE ${{ matrix.jakarta }}) | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: 'maven' | |
- run: ./mvnw --batch-mode --update-snapshots install -DskipTests -P EE${{ matrix.jakarta }} | |
unit-test: | |
runs-on: ubuntu-latest | |
needs: build | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 17, 19 ] | |
jakarta: [ 9, 10 ] | |
name: Unit tests (Java ${{ matrix.java }}, Jakarta EE ${{ matrix.jakarta }}) | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: 'maven' | |
- run: ./mvnw --batch-mode --update-snapshots install -DskipTests -P EE${{ matrix.jakarta }} | |
- run: ./mvnw --batch-mode test -P EE${{ matrix.jakarta }} | |
integration-test: | |
runs-on: ubuntu-latest | |
needs: build | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 17 ] | |
container: [ 'WILDFLY_MANAGED', 'WILDFLY_REMOTE', 'PAYARA_MANAGED' ] | |
jakarta: [ 9, 10 ] | |
name: Integration tests (Java ${{ matrix.java }}, Jakarta EE ${{ matrix.jakarta }}, Container ${{ matrix.container }}) | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: 'maven' | |
- run: ./mvnw -V --batch-mode --update-snapshots install -DskipTests -P EE${{ matrix.jakarta }} | |
- run: ./mvnw -V --batch-mode -P ${{ matrix.container }},EE${{ matrix.jakarta }} verify |