-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
466 additions
and
166 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,3 @@ | ||
Please use one of the following templates: | ||
|
||
https://github.com/holunda-io/kotlin-lib/issues/new/choose |
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: 'Bug report' | ||
about: 'Report a bug' | ||
title: | ||
labels: 'Type: bug' | ||
|
||
--- | ||
|
||
### Steps to reproduce | ||
|
||
* Library version: | ||
* JDK version: | ||
* Operating system: | ||
* Complete executable reproducer: (e.g. GitHub Repo) | ||
* Steps: (what exactly are you doing with the above reproducer?) | ||
|
||
### Expected behaviour | ||
|
||
### Actual behaviour | ||
|
||
(In case of exceptions provide full stack trace) |
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,19 @@ | ||
--- | ||
name: 'Feature request' | ||
about: 'Suggest a new feature or enhancement' | ||
title: | ||
labels: 'Type: enhancement' | ||
assignees: | ||
|
||
--- | ||
|
||
### Scenario | ||
|
||
* Library version: | ||
* Description of your use case: (detailed description or executable reproducer, e.g. GitHub repo) | ||
|
||
### Current Behaviour | ||
|
||
### Wanted Behaviour | ||
|
||
### Possible Workarounds |
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,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: maven | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 |
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 @@ | ||
changelog: | ||
sections: | ||
- title: ":zap: Breaking Changes" | ||
labels: [ "Type: breaking" ] | ||
- title: ":rocket: Enhancements & Features" | ||
labels: [ "Type: enhancement", "Type: documentation", "Type: example" ] | ||
- title: ":bug: Bug Fixes" | ||
labels: [ "Type: bug" ] | ||
- title: ":hammer_and_wrench: Chore" | ||
labels: [ "Type: dependencies" ] | ||
issues: | ||
exclude: | ||
labels: [ "Type: Incorrect Repository", "Type: question" ] | ||
contributors: | ||
exclude: | ||
names: [ "dependabot[bot]", "codacy-badger" ] |
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,53 @@ | ||
name: Development branches | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '**/*' | ||
- '!main' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build and run tests | ||
steps: | ||
# Checkout the code | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Expose branch name | ||
run: echo ${{ github.ref }} | ||
|
||
# Setup JDK and Maven | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: zulu | ||
cache: maven | ||
|
||
# Prepare | ||
- name: Prepare Maven Wrapper | ||
run: chmod +x ./mvnw | ||
|
||
# Build | ||
- name: Build with Maven | ||
run: ./mvnw clean verify -U -B -T4 -ntp | ||
|
||
# I-test | ||
- name: Run itest | ||
run: ./mvnw integration-test failsafe:verify -Pitest -U -B -T4 -ntp | ||
|
||
# - name: Upload coverage to Codecov | ||
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]' | ||
# uses: codecov/[email protected] | ||
# with: | ||
# token: ${{secrets.CODECOV_TOKEN}} | ||
|
||
# - name: Upload test coverage to Codacy | ||
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]' | ||
# run: bash <(curl -Ls https://coverage.codacy.com/get.sh) | ||
# env: | ||
# CODACY_PROJECT_TOKEN: "${{secrets.CODACY_PROJECT_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,58 @@ | ||
name: Produces and releases artifacts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build and run tests | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Setup JDK and .m2/settings.xml | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
cache: maven | ||
distribution: zulu | ||
server-id: ossrh | ||
server-username: OSS_CENTRAL_USERNAME # env variable for Maven Central | ||
server-password: OSS_CENTRAL_PASSWORD # env variable for Maven Central | ||
|
||
# Prepare | ||
- name: Prepare Maven Wrapper | ||
run: chmod +x ./mvnw | ||
|
||
# Build | ||
- name: Build with Maven | ||
run: ./mvnw clean verify -U -B -T4 -ntp | ||
|
||
# Get GPG private key into GPG | ||
- name: Import GPG Owner Trust | ||
run: echo ${{ secrets.GPG_OWNERTRUST }} | base64 --decode | gpg --import-ownertrust | ||
|
||
- name: Import GPG key | ||
run: echo ${{ secrets.GPG_SECRET_KEYS }} | base64 --decode | gpg --import --no-tty --batch --yes | ||
|
||
# Publish release | ||
- name: Deploy a new release version to Maven Central | ||
run: ./mvnw clean deploy -B -DskipTests -DskipExamples -Prelease -Dgpg.keyname="${{ secrets.GPG_KEYNAME }}" -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" -ntp | ||
env: | ||
OSS_CENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
OSS_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
|
||
# - name: Upload coverage information | ||
# uses: codecov/codecov-action@v2 | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
# - name: Upload test coverage to Codacy | ||
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]' | ||
# run: bash <(curl -Ls https://coverage.codacy.com/get.sh) | ||
# env: | ||
# CODACY_PROJECT_TOKEN: "${{secrets.CODACY_PROJECT_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,33 @@ | ||
# Trigger the workflow on milestone events | ||
on: | ||
milestone: | ||
types: [closed] | ||
name: Milestone Closure | ||
jobs: | ||
create-release-notes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@main | ||
- name: Create Release Notes Markdown | ||
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 | ||
USE_MILESTONE_TITLE: "true" | ||
- name: Get the name of the created Release Notes file and extract Version | ||
run: | | ||
RELEASE_NOTES_FILE=$(ls temp_release_notes/*.md | head -n 1) | ||
echo "RELEASE_NOTES_FILE=$RELEASE_NOTES_FILE" >> $GITHUB_ENV | ||
VERSION=$(echo ${{ github.event.milestone.title }} | cut -d' ' -f2) | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Create a Draft Release Notes on GitHub | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ env.VERSION }} | ||
release_name: ${{ env.VERSION }} | ||
body_path: ${{ env.RELEASE_NOTES_FILE }} | ||
draft: true |
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 |
---|---|---|
@@ -1,2 +1,18 @@ | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar |
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
Oops, something went wrong.