forked from spring-attic/reactor-aeron
-
Notifications
You must be signed in to change notification settings - Fork 11
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 #167 from scalecube/github-actions
Updated parent pom + workflows; removed travis support
- Loading branch information
Showing
11 changed files
with
207 additions
and
117 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,36 @@ | ||
name: Branch CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '.github/workflows/**' | ||
- '*.md' | ||
- '*.txt' | ||
branches-ignore: | ||
- 'release*' | ||
|
||
jobs: | ||
build: | ||
name: 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,37 @@ | ||
name: Pre-release CI | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
build: | ||
name: Pre-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 pre-release version | ||
run: | | ||
pre_release_version=${{ github.event.release.tag_name }} | ||
echo Pre-release version $pre_release_version | ||
mvn versions:set -DnewVersion=$pre_release_version -DgenerateBackupPoms=false | ||
mvn versions:commit | ||
mvn clean deploy -B -V | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }} | ||
- name: Rollback pre-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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Release CI | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
build: | ||
name: Release CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- run: git checkout ${{ github.event.release.target_commitish }} | ||
- 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: | | ||
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 -B build-helper:parse-version release:prepare \ | ||
-DreleaseVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.incrementalVersion} \ | ||
-Darguments="-DskipTests=true -Ddockerfile.skip=true" | ||
echo ::set-output name=release_tag::$(git describe --tags --abbrev=0) | ||
- name: Perform release | ||
run: mvn -B release:perform -Darguments="-DskipTests=true -Ddockerfile.skip=true" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} | ||
- name: Rollback release | ||
if: failure() | ||
run: | | ||
mvn release:rollback || echo "nothing to rollback" | ||
git push origin :refs/tags/${{ github.event.release.tag_name }} | ||
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 |
---|---|---|
@@ -1,34 +1,13 @@ | ||
# Eclipse project files | ||
.project | ||
.classpath | ||
.settings | ||
|
||
# IntelliJ IDEA project files and directories | ||
.* | ||
!.gitignore | ||
!.gitattributes | ||
!.github | ||
!.editorconfig | ||
!.*.yml | ||
!.env.example | ||
**/target/ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# Geany project file | ||
.geany | ||
|
||
# KDevelop project file and directory | ||
.kdev4/ | ||
*.kdev4 | ||
|
||
# Build targets | ||
/target | ||
*/target | ||
|
||
# Report directories | ||
/reports | ||
*/reports | ||
**/logs/*.log | ||
*.db | ||
*.csv | ||
*.log | ||
*.zip | ||
|
||
# Mac-specific directory that no other operating system needs. | ||
.DS_Store | ||
|
||
# JVM crash logs | ||
hs_err_pid*.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 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 was deleted.
Oops, something went wrong.