Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitted builds into pr and not pr, added ghactions to dependabot and other minors #56

Merged
merged 2 commits into from
Jun 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 5
reviewers:
- "m1l4n54v1c"
- "saratry"
- "stefanvozd"
- package-ecosystem: maven
directory: "/"
schedule:
Expand Down
14 changes: 5 additions & 9 deletions .github/release-notes.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
releasenotes:
changelog:
sections:
- title: "Features"
emoji: ":star:"
- title: ":star: Features"
labels: [ "Type: Feature" ]
- title: "Enhancements"
emoji: ":chart_with_upwards_trend:"
- title: ":chart_with_upwards_trend: Enhancements"
labels: [ "Type: Enhancement" ]
- title: "Bug Fixes"
emoji: ":beetle:"
- title: ":beetle: Bug Fixes"
labels: [ "Type: Bug" ]
- title: "Dependency Upgrade"
emoji: ":hammer_and_wrench:"
- title: ":hammer_and_wrench: Dependency Upgrade"
labels: [ "Type: Dependency Upgrade" ]
issues:
exclude:
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/maven.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,37 @@ name: Reactor Extension
on:
push:
branches:
- main
- master
- axon-reactor-*.*.x
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
deploy: true
- java-version: 11
sonar-enabled: true
deploy: false

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1.4.3
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.3
uses: actions/cache@v2.1.6
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -64,7 +61,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy to Sonatype
if: github.github.head_ref == null && success() && matrix.deploy
if: success()
run: |
./mvnw -B -U deploy -DskipTests=true
env:
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Reactor 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-reactor \
-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 }}
4 changes: 2 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release Notes Markdown
uses: docker://decathlon/release-notes-generator-action:2.1.0
uses: docker://decathlon/release-notes-generator-action:3.1.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
OUTPUT_FOLDER: temp_release_notes
Expand All @@ -30,4 +30,4 @@ jobs:
tag_name: axon-reactor-${{ env.VERSION }}
release_name: Axon Reactor Extension v${{ env.VERSION }}
body_path: ${{ env.RELEASE_NOTES_FILE }}
draft: true
draft: true