Skip to content
Open
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
41 changes: 13 additions & 28 deletions .github/workflows/maven.yml → .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,21 @@
# specific language governing permissions and limitations
# under the License.

name: Java CI
name: Verify

on: [ push, pull_request ]
on:
push:
pull_request:

jobs:
build:
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
with:
maven4-enabled: true
jdk-distribution-matrix: '[ "temurin", "semeru"]'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to exclude jdk8

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope this is correct. The example from the Shared-GH-Actions-Doc gave me syntax error

matrix-exclude: '
[
{"jdk": "8"}
]'

strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
java: [ 11, 17, 21 ]
dist: [ 'temurin', 'semeru' ]
exclude:
- os: macos-latest
dist: 'semeru'

fail-fast: false

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: ${{ matrix.dist }}
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build with Maven
run: mvn verify --errors --batch-mode --show-version -Prun-its
Loading