This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
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.
Merge pull request #35 from scalecube/develop
New master
- Loading branch information
Showing
19 changed files
with
251 additions
and
355 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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
*.txt text | ||
*.sh text eol=lf | ||
*.html text eol=lf diff=html | ||
*.css text eol=lf | ||
*.js text eol=lf | ||
*.jpg -text | ||
*.pdf -text | ||
*.java text diff=java |
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,4 @@ | ||
template: | | ||
## What’s Changed | ||
$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,37 @@ | ||
name: Feature Branch CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '.github/workflows/**' | ||
- 'README.md' | ||
branches-ignore: | ||
- 'master' | ||
- 'develop' | ||
- 'release*' | ||
|
||
jobs: | ||
build: | ||
name: Feature Branch CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: github | ||
server-username: GITHUB_ACTOR | ||
server-password: GITHUB_TOKEN | ||
- name: Maven Build | ||
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -Ddockerfile.skip=true -B -V | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }} | ||
- name: Maven Verify | ||
run: mvn verify -B |
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,64 @@ | ||
name: Master branch CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
name: Master Branch CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: github | ||
server-username: GITHUB_ACTOR | ||
server-password: GITHUB_TOKEN | ||
- name: Maven Build | ||
run: mvn clean install -DskipTests=true -Ddockerfile.skip=true -B -V | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }} | ||
- name: Maven Verify | ||
run: mvn verify -B | ||
- name: Configure git | ||
run: | | ||
echo "Git checkout branch ${GITHUB_REF##*/}, commit ${GITHUB_SHA} was pushed by ${GITHUB_ACTOR}" | ||
git checkout ${GITHUB_REF##*/} | ||
echo "Git reset hard to ${GITHUB_SHA}" | ||
git reset --hard ${GITHUB_SHA} | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
- name: Prepare release | ||
id: prepare_release | ||
run: | | ||
mvn --batch-mode build-helper:parse-version release:prepare -P release \ | ||
-DreleaseVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.incrementalVersion} \ | ||
-DdevelopmentVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT \ | ||
-DautoVersionSubmodules=true -Darguments="-DskipTests=true" | ||
echo ::set-output name=release_tag::$(git describe --tags --abbrev=0) | ||
- name: Perform release | ||
run: mvn --batch-mode release:perform -P release -Darguments="-DskipTests=true -Ddocker.image.extra-tag=master" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} | ||
- name: Rollback release | ||
if: failure() | ||
run: | | ||
mvn release:rollback || echo "nothing to rollback" | ||
if [ ! -z "${{ steps.prepare_release.outputs.release_tag }}" ] | ||
then | ||
git tag -d ${{ steps.prepare_release.outputs.release_tag }} | ||
git push origin :refs/tags/${{ steps.prepare_release.outputs.release_tag }} | ||
fi |
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,38 @@ | ||
name: Release CI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Release CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: github | ||
server-username: GITHUB_ACTOR | ||
server-password: GITHUB_TOKEN | ||
- name: Deploy release version | ||
run: | | ||
# `tag` is the concatenation of `v` and a version by the tag convention. | ||
release_version=$(echo ${{ github.event.release.tag_name }} | sed "s/v//") | ||
echo Release version $release_version | ||
mvn versions:set -DnewVersion=$release_version -DgenerateBackupPoms=false | ||
mvn versions:commit | ||
mvn clean deploy -B -V | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }} | ||
- name: Rollback release (remove tag) | ||
if: failure() | ||
run: git push origin :refs/tags/${{ github.event.release.tag_name }} |
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,34 +1,13 @@ | ||
# Eclipse project files | ||
.project | ||
.classpath | ||
.settings | ||
|
||
# IntelliJ IDEA project files and directories | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# Geany project file | ||
.geany | ||
|
||
# KDevelop project file and directory | ||
.kdev4/ | ||
*.kdev4 | ||
|
||
# Build targets | ||
/target | ||
*/target | ||
|
||
# Report directories | ||
/reports | ||
*/reports | ||
|
||
# Mac-specific directory that no other operating system needs. | ||
.DS_Store | ||
|
||
# JVM crash logs | ||
hs_err_pid*.log | ||
|
||
*.log | ||
*.csv | ||
.* | ||
!.gitignore | ||
!.gitattributes | ||
!.github | ||
!.editorconfig | ||
!.*.yml | ||
!.env.example | ||
**/target/ | ||
*.iml | ||
**/logs/*.log | ||
*.db | ||
*.csv | ||
*.log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
extends: default | ||
rules: | ||
document-start: | ||
present: false | ||
truthy: disable | ||
comments: | ||
min-spaces-from-content: 1 | ||
line-length: | ||
max: 150 | ||
braces: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 0 | ||
brackets: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 0 | ||
indentation: | ||
indent-sequences: consistent |
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
Oops, something went wrong.