2020-06-17 10:48:08 -04:00
|
|
|
name: "Build"
|
|
|
|
|
2021-03-04 13:35:45 -05:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2020-06-17 10:48:08 -04:00
|
|
|
|
|
|
|
jobs:
|
2021-08-24 10:12:10 -04:00
|
|
|
test:
|
|
|
|
name: Test (${{ matrix.java }})
|
2020-06-17 10:48:08 -04:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-05-17 04:18:19 -04:00
|
|
|
java: [ 8, 11, 16 ]
|
2020-06-17 10:48:08 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.m2/repository
|
|
|
|
!~/.m2/repository/org/apache/activemq/artemis-*
|
2021-08-24 10:12:10 -04:00
|
|
|
!~/.m2/repository/org/apache/activemq/*-artemis
|
|
|
|
!~/.m2/repository/org/apache/activemq/examples
|
|
|
|
key: ${{ runner.os }}-maven-test-${{ hashFiles('**/pom.xml') }}
|
2020-06-17 10:48:08 -04:00
|
|
|
restore-keys: |
|
2021-08-24 10:12:10 -04:00
|
|
|
${{ runner.os }}-maven-test-
|
2020-06-17 10:48:08 -04:00
|
|
|
|
|
|
|
- name: Install JDK ${{ matrix.java }}
|
2021-05-17 10:04:43 -04:00
|
|
|
uses: actions/setup-java@v2
|
2020-06-17 10:48:08 -04:00
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
2021-05-17 10:04:43 -04:00
|
|
|
distribution: 'adopt'
|
2020-06-17 10:48:08 -04:00
|
|
|
|
|
|
|
# use 'install' so smoke-tests will work
|
|
|
|
# By setting anything to org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED we are disabling libaio loading on the testsuite
|
2021-08-24 10:12:10 -04:00
|
|
|
- name: Fast Tests
|
|
|
|
run: |
|
|
|
|
mvn -s .github/maven-settings.xml -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Pfast-tests -Ptests-CI install
|
|
|
|
|
|
|
|
|
|
|
|
checks:
|
|
|
|
name: Checks (${{ matrix.java }})
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
java: [ 8, 11, 16 ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.m2/repository
|
|
|
|
!~/.m2/repository/org/apache/activemq/artemis-*
|
|
|
|
!~/.m2/repository/org/apache/activemq/*-artemis
|
|
|
|
!~/.m2/repository/org/apache/activemq/examples
|
|
|
|
key: ${{ runner.os }}-maven-checks-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-maven-checks-
|
|
|
|
${{ runner.os }}-maven-test-
|
|
|
|
|
|
|
|
- name: Install JDK ${{ matrix.java }}
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
distribution: 'adopt'
|
|
|
|
|
2020-09-01 10:30:42 -04:00
|
|
|
- name: Build Main
|
|
|
|
run: |
|
2021-08-24 10:12:10 -04:00
|
|
|
mvn -s .github/maven-settings.xml -DskipTests -Derrorprone -Pdev -Pextra-tests -Pjmh install
|
2021-03-04 13:35:45 -05:00
|
|
|
|
|
|
|
- name: Build Examples (JDK8 / -Prelease)
|
|
|
|
if: matrix.java == '8'
|
2020-06-17 10:48:08 -04:00
|
|
|
run: |
|
|
|
|
cd examples
|
2021-08-24 10:12:10 -04:00
|
|
|
mvn -s ../.github/maven-settings.xml verify -Prelease
|
2020-06-17 10:48:08 -04:00
|
|
|
|
2021-03-04 13:35:45 -05:00
|
|
|
- name: Build Examples (JDK 11+ / -Pexamples,noRun)
|
|
|
|
if: matrix.java != '8'
|
|
|
|
run: |
|
|
|
|
cd examples
|
2021-08-24 10:12:10 -04:00
|
|
|
mvn -s ../.github/maven-settings.xml verify -Pexamples,noRun
|
2021-04-08 18:43:46 -04:00
|
|
|
|
2021-06-02 11:58:25 -04:00
|
|
|
- name: Javadoc Check (JDK8 / -Prelease)
|
2021-04-08 18:43:46 -04:00
|
|
|
if: matrix.java == '8'
|
|
|
|
run: |
|
2021-08-17 12:56:41 -04:00
|
|
|
mvn -s .github/maven-settings.xml javadoc:javadoc -Prelease
|
2021-06-02 11:58:25 -04:00
|
|
|
|
|
|
|
- name: Javadoc Check (JDK 11+)
|
|
|
|
if: matrix.java != '8'
|
|
|
|
run: |
|
2021-08-17 12:56:41 -04:00
|
|
|
mvn -s .github/maven-settings.xml javadoc:javadoc
|