-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from AxonFramework/process-improvement
Splitted builds into pr and not pr, added ghactions to dependabot and other minors
- Loading branch information
Showing
5 changed files
with
77 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: JGroups Extension | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Test and Build on JDK ${{ matrix.java-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- java-version: 8 | ||
sonar-enabled: false | ||
- java-version: 11 | ||
sonar-enabled: true | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v2.1.0 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java-version }} | ||
server-id: sonatype | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
|
||
- name: Cache .m2 | ||
uses: actions/cache@v2.1.6 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven | ||
- name: Maven operation with Sonar | ||
if: matrix.sonar-enabled | ||
run: | | ||
mvn -B -U -Pcoverage \ | ||
clean verify \ | ||
sonar:sonar \ | ||
-Dsonar.projectKey=AxonFramework_extension-jgroups \ | ||
-Dsonar.organization=axonframework \ | ||
-Dsonar.host.url=https://sonarcloud.io \ | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Maven operation without Sonar | ||
if: matrix.sonar-enabled != true | ||
run: | | ||
mvn -B -U clean verify | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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