Merge pull request #2236 from smallrye/dependabot/maven/main/artemis.… #818
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: Continuous Integration Build | |
on: | |
push: | |
branches: | |
- main | |
- 3.x | |
paths-ignore: | |
- '.github/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.java.continue-on-error == true }} | |
strategy: | |
matrix: | |
java: [ | |
{ | |
'name': '', | |
'version': '11', | |
'build_opts': '-Drevapi.skip=true' | |
}, | |
{ | |
'name': '', | |
'version': '17', | |
}, | |
{ | |
'version': '11', | |
'build_opts': '-Pslow-flaky-tests -Drevapi.skip=true', | |
'name': 'Slow and Flaky tests', | |
'continue-on-error': true | |
} | |
] | |
name: Build with Java ${{ matrix.java.version }} ${{ matrix.java.name }} | |
steps: | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
maven- | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ matrix.java.version }} | |
distribution: temurin | |
- name: Build with Maven | |
env: | |
MAVEN_OPTS: ${{ matrix.java.opts }} | |
run: | | |
mvn -s .github/ci-maven-settings.xml -Dmaven.resolver.transport=wagon -B \ | |
clean verify -Dtest-containers=true ${{ matrix.java.build_opts }} | |
quality: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
maven- | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: 11 | |
distribution: temurin | |
- name: Coverage and Sonar | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_LOGIN }} | |
run: | | |
mvn -s .github/ci-maven-settings.xml -B \ | |
clean install sonar:sonar -Pcoverage \ | |
-Dmaven.resolver.transport=wagon \ | |
-Drevapi.skip=true \ | |
-Dsonar.projectKey=smallrye_smallrye-reactive-messaging \ | |
-Dsonar.projectName="SmallRye Reactive Messaging" \ | |
-Dsonar.organization=smallrye \ | |
-Dsonar.host.url=https://sonarcloud.io \ | |
-Dsonar.login=$SONAR_LOGIN \ | |
--fail-at-end | |
- name: Codecov | |
uses: codecov/[email protected] |