Skip to content

Commit

Permalink
Add Maven matrix testing (#632)
Browse files Browse the repository at this point in the history
* Use 's4u/setup-maven-action' GH action to test Maven compatibility matrix
* Defined formal Maven compatible version (1-year-old + most recent minor)

Fixes #630
  • Loading branch information
abelsromero authored Mar 20, 2023
1 parent 78dbcfa commit 0bfd843
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 19 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,27 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
java:
- 8
- 11
- 17
os:
- ubuntu-latest
- windows-latest
- macos-latest
java:
- 8
- 11
- 17
# 1-year-old version + latest minor
maven:
- 3.8.5
- 3.8.8
- 3.9.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: s4u/[email protected]
with:
fetch-depth: 1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-mvn-cache-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-mvn-cache-
- name: Build
run: ./mvnw -B -V -Prun-its clean verify
maven-version: ${{ matrix.maven }}
- name: Maven version
run: mvn -version
- name: Build & Test
run: mvn -B -Prun-its clean verify
4 changes: 4 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ For a detailed view of what has changed, refer to the {uri-repo}/commits/main[co

== Unreleased

Build / Infrastructure::

* Add Maven matrix testing + define Maven compatibility policy (#632)

== v2.2.3 (2023-03-18)

Bug Fixes::
Expand Down
5 changes: 5 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ These are the minimal steps to convert your AsciiDoc documents to HTML with the

You can find examples ready to copy-paste in the {uri-examples}[Asciidoctor Maven examples] project.

== Maven compatible versions

// 1-year-old versions + most recent minor
asciidoctor-maven-plugin supports Maven 3.8.5+ and 3.9.x versions.

== Contributing

This plugin is an open source project made possible with the help of users and enthusiasts.
Expand Down
13 changes: 11 additions & 2 deletions docs/modules/plugin/pages/compatibility-matrix.adoc
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
= Compatibility Matrix

Here is the list of supported versions alongside the required {uri-asciidoctorj}[AsciidoctorJ] version.
Release candidate releases are not accounted.
Release candidate releases are not accounted.

== Versions
== Maven compatible versions

The current policy for Maven compatibility is to support https://maven.apache.org/docs/history.html[1-year-old releases and the most recent minor].

That is:

* Maven v3.8.5 and higher
* Maven v3.9.x

== AsciidoctorJ compatible versions

|===
|Asciidoctor Maven Plugin | AsciidoctorJ | Supported
Expand Down

0 comments on commit 0bfd843

Please sign in to comment.