Skip to content

Commit ad99f6b

Browse files
committed
Merge branch 'release/v1.12.0'
2 parents dbc7665 + 4bed574 commit ad99f6b

File tree

73 files changed

+55524
-48057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+55524
-48057
lines changed

.dependabot/config.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
*.xml text encoding=utf-8 eol=lf
1010
*.yaml text encoding=utf-8 eol=lf
1111
*.yml text encoding=utf-8 eol=lf
12+
*.cmd text encoding=utf-8 eol=crlf

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
timezone: Europe/Berlin
9+
open-pull-requests-limit: 10

.github/workflows/build-project.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Build project
2+
3+
on: [push, pull_request]
4+
5+
6+
env:
7+
MVN_ARGS: --batch-mode --errors --fail-fast --no-transfer-progress
8+
HAS_SONAR_TOKEN: ${{ secrets.SONAR_TOKEN != '' }}
9+
10+
11+
jobs:
12+
default:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Fetch unshallow to enable blame for Sonar
20+
run: git fetch --prune --unshallow
21+
22+
- uses: actions/setup-java@v1
23+
with:
24+
java-version: 8
25+
26+
- name: Cache local Maven repository
27+
uses: actions/cache@v2
28+
with:
29+
path: ~/.m2/repository
30+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
31+
restore-keys: ${{ runner.os }}-maven-
32+
33+
- name: Cache Sonar
34+
uses: actions/cache@v1
35+
with:
36+
path: ~/.sonar/cache/
37+
key: ${{ runner.os }}-sonar
38+
39+
- name: Compile
40+
run: mvn ${MVN_ARGS} clean package -DskipTests
41+
42+
- uses: actions/setup-java@v1
43+
with:
44+
java-version: 15
45+
46+
- name: Test with SonarCloud
47+
id: test-with-sonar
48+
if: ${{ env.HAS_SONAR_TOKEN == 'true' }}
49+
run: >
50+
mvn ${MVN_ARGS} verify sonar:sonar -Pcoverage
51+
-Dsonar.host.url=https://sonarcloud.io
52+
-Dsonar.organization=retest
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
56+
57+
- name: Test without SonarCloud
58+
id: test-without-sonar
59+
if: ${{ steps.test-with-sonar.conclusion == 'skipped' }}
60+
run: mvn ${MVN_ARGS} verify
61+
62+
- name: Archive recheck tests.report
63+
if: always()
64+
uses: actions/upload-artifact@v2
65+
with:
66+
name: tests.report
67+
path: target/test-classes/retest/recheck/tests.report
68+
retention-days: 10

.github/workflows/build.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/deploy-release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy releases
2+
3+
on:
4+
create:
5+
tags: v*
6+
7+
env:
8+
MVN_ARGS: --batch-mode --errors --fail-fast --no-transfer-progress
9+
10+
jobs:
11+
default:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: actions/setup-java@v1
19+
with:
20+
java-version: 8
21+
server-id: ossrh
22+
server-username: MAVEN_USERNAME
23+
server-password: MAVEN_PASSWORD
24+
25+
- name: Cache local Maven repository
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/.m2/repository
29+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: ${{ runner.os }}-maven-
31+
32+
- name: Install gpg secret key
33+
run: |
34+
gpg --batch --import <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}")
35+
gpg --list-secret-keys --keyid-format LONG
36+
37+
- id: publish-to-central
38+
name: Publish to Central Repository
39+
run: |
40+
mvn ${MVN_ARGS} -DskipTests -Psign clean deploy
41+
env:
42+
GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
43+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
44+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.github/workflows/deploy.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/release-beta.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Release beta
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
approval:
7+
description: 'Do you really want to release a BETA from configured BRANCH?'
8+
required: true
9+
default: 'NO'
10+
11+
env:
12+
MVN_ARGS: --batch-mode --errors --fail-fast --no-transfer-progress
13+
14+
jobs:
15+
default:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Verify approval
21+
run: "[[ $(echo ${{ github.event.inputs.approval }} | tr 'a-z' 'A-Z') == 'YES' ]]"
22+
23+
- uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 0
26+
token: ${{ secrets.TRIGGER_ACTIONS_GITHUB_TOKEN }}
27+
28+
- name: Verify for release or hotfix branch
29+
run: "[[ $( git branch --show-current ) =~ ^release.*|^hotfix.* ]]"
30+
31+
- uses: actions/setup-java@v1
32+
with:
33+
java-version: 8
34+
35+
- name: Cache local Maven repository
36+
uses: actions/cache@v2
37+
with:
38+
path: ~/.m2/repository
39+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
40+
restore-keys: ${{ runner.os }}-maven-
41+
42+
- name: Configure Git user
43+
run: |
44+
git config user.email "ops+githubactions@retest.de"
45+
git config user.name "retest release github action"
46+
47+
- id: next_beta
48+
name: Find next beta version
49+
run: |
50+
# get next stable release version from pom.xml
51+
RELEASE_VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//' )
52+
# find last beta for this version using git tags. Prefix with 0 als default for next line
53+
LAST_BETA_TAG=0$( git for-each-ref --sort=-taggerdate --count=1 --format '%(refname:short)' "refs/tags/v${RELEASE_VERSION}-beta.*" )
54+
# Create string for beta version
55+
NEXT_BETA="$RELEASE_VERSION-beta.$((1+"${LAST_BETA_TAG/v$RELEASE_VERSION-beta./}"))"
56+
echo "::set-output name=version::$NEXT_BETA"
57+
58+
- name: Create beta release tag
59+
run: |
60+
mvn versions:set -DnewVersion=${{ steps.next_beta.outputs.version }} -DgenerateBackupPoms=false
61+
git commit -a -m "ci: release ${{ steps.next_beta.outputs.version }}"
62+
git tag -a v${{ steps.next_beta.outputs.version }} -m "ci: tag beta release ${{ steps.next_beta.outputs.version }}"
63+
git push --tags
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release feature finish
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
approval:
7+
description: 'Do you really want to finish the current FEATURE release?'
8+
required: true
9+
default: 'NO'
10+
11+
env:
12+
MVN_ARGS: --batch-mode --errors --fail-fast --no-transfer-progress
13+
14+
jobs:
15+
default:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Verify approval
21+
run: "[[ $(echo ${{ github.event.inputs.approval }} | tr 'a-z' 'A-Z') == 'YES' ]]"
22+
23+
- uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 0
26+
token: ${{ secrets.TRIGGER_ACTIONS_GITHUB_TOKEN }}
27+
28+
- uses: actions/setup-java@v1
29+
with:
30+
java-version: 8
31+
32+
- name: Cache local Maven repository
33+
uses: actions/cache@v2
34+
with:
35+
path: ~/.m2/repository
36+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
37+
restore-keys: ${{ runner.os }}-maven-
38+
39+
- name: Configure Git user
40+
run: |
41+
git config user.email "ops+githubactions@retest.de"
42+
git config user.name "retest release github action"
43+
44+
- name: Tag and finish release branch
45+
run: mvn ${MVN_ARGS} gitflow:release-finish

0 commit comments

Comments
 (0)