-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'antkorwin:master' into Add_plugin_to_generate_OSGI-headers
- Loading branch information
Showing
14 changed files
with
225 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
'type:features': 'feature*' | ||
'type:fix': 'fix*' |
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,17 @@ | ||
'type:build': | ||
- ".github/**" | ||
- "pom.xml" | ||
- ".travis.yml" | ||
- ".gitignore" | ||
- "Dockerfile" | ||
- ".codecov.yml" | ||
'type:features': | ||
- "src/main/**" | ||
'type:tests': | ||
- "src/test/**" | ||
'type:documentation': | ||
- '*.md' | ||
- "docs/**" | ||
'type:trash': | ||
- ".idea/**" | ||
- "target/**" |
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,21 @@ | ||
name-template: 'Release $NEXT_PATCH_VERSION' | ||
tag-template: 'v$NEXT_PATCH_VERSION' | ||
|
||
categories: | ||
- title: '🚀 New Features' | ||
labels: | ||
- 'type:features' | ||
- title: '🐞 Bugs Fixes' | ||
labels: | ||
- 'type:fix' | ||
- title: '📚 Documentation' | ||
labels: | ||
- 'type:documentation' | ||
- title: '🛠 Configuration' | ||
labels: | ||
- 'type:config' | ||
- 'type:build' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
template: | | ||
## Changes | ||
$CHANGES |
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,31 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
# checkout | ||
- uses: actions/checkout@v3 | ||
- name: set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 8 | ||
|
||
# build project and run all tests & checks | ||
- name: Maven Verify | ||
run: mvn -B clean verify | ||
|
||
# Upload code coverage report to Codecov | ||
- name: Test Coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Check and add labels in PR | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, labeled, unlabeled, synchronize ] | ||
|
||
jobs: | ||
label-verify: | ||
name: Verify labels in PR | ||
uses: ./.github/workflows/label-verify.yml | ||
with: | ||
exit_type: ${{ github.event.action == 'opened' && 'success' || 'failure' }} | ||
labeler: | ||
name: Auto-assign labels to PR | ||
if: needs.label-verify.outputs.result == 'failure' | ||
needs: label-verify | ||
uses: ./.github/workflows/labeler.yml | ||
retry-label-verify: | ||
name: Retry verify labels in PR | ||
needs: labeler | ||
uses: ./.github/workflows/label-verify.yml |
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,28 @@ | ||
name: Verify labels in PR | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
exit_type: | ||
default: failure | ||
required: false | ||
type: string | ||
outputs: | ||
result: | ||
value: ${{ jobs.label-verify.outputs.status }} | ||
|
||
jobs: | ||
label-verify: | ||
runs-on: ubuntu-20.04 | ||
outputs: | ||
status: ${{ steps.check-labels.outputs.status }} | ||
steps: | ||
- id: check-labels | ||
uses: mheap/github-action-required-labels@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
mode: minimum | ||
count: 1 | ||
labels: "type:fix, type:features, type:documentation, type:tests, type:config, type:build" | ||
exit_type: ${{ inputs.exit_type }} |
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,27 @@ | ||
name: Auto-assign labels to PR | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
file-labeler: | ||
name: File labeler | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/labeler@v4 | ||
with: | ||
configuration-path: .github/file-labeler.yml | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
branch-labeler: | ||
name: Branch labeler | ||
needs: file-labeler | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: TimonVS/pr-labeler-action@v3 | ||
with: | ||
configuration-path: .github/branch-labeler.yml | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Release Draft | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update-draft-release: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: release-drafter/release-drafter@v5 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: SonarCloud | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
sonarcloud: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# Shallow clones should be disabled for a better relevancy of analysis | ||
fetch-depth: 0 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 11 | ||
- name: Analyze with SonarCloud | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
# run sonar maven plugin: | ||
run: mvn -B verify sonar:sonar -Dsonar.projectKey=antkorwin_xsync -Dsonar.organization=antkorwin-github -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dsonar.coverage.jacoco.xmlReportPaths=./target/site/jacoco/jacoco.xml |
This file was deleted.
Oops, something went wrong.
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