Skip to content

Commit a543bae

Browse files
authored
Merge pull request #167 from scalecube/github-actions
Updated parent pom + workflows; removed travis support
2 parents 3100e49 + 2b3a616 commit a543bae

11 files changed

+207
-117
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
*.txt text
4+
*.sh text eol=lf
5+
*.html text eol=lf diff=html
6+
*.css text eol=lf
7+
*.js text eol=lf
8+
*.jpg -text
9+
*.pdf -text
10+
*.java text diff=java

.github/workflows/branch-ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Branch CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '.github/workflows/**'
7+
- '*.md'
8+
- '*.txt'
9+
branches-ignore:
10+
- 'release*'
11+
12+
jobs:
13+
build:
14+
name: Branch CI
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/cache@v1
19+
with:
20+
path: ~/.m2/repository
21+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
22+
restore-keys: |
23+
${{ runner.os }}-maven-
24+
- name: Set up JDK 1.8
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: 1.8
28+
server-id: github
29+
server-username: GITHUB_ACTOR
30+
server-password: GITHUB_TOKEN
31+
- name: Maven Build
32+
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -Ddockerfile.skip=true -B -V
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }}
35+
- name: Maven Verify
36+
run: mvn verify -B

.github/workflows/pre-release-ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Pre-release CI
2+
3+
on:
4+
release:
5+
types: [prereleased]
6+
7+
jobs:
8+
build:
9+
name: Pre-release CI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/cache@v1
14+
with:
15+
path: ~/.m2/repository
16+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
17+
restore-keys: |
18+
${{ runner.os }}-maven-
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
server-id: github
24+
server-username: GITHUB_ACTOR
25+
server-password: GITHUB_TOKEN
26+
- name: Deploy pre-release version
27+
run: |
28+
pre_release_version=${{ github.event.release.tag_name }}
29+
echo Pre-release version $pre_release_version
30+
mvn versions:set -DnewVersion=$pre_release_version -DgenerateBackupPoms=false
31+
mvn versions:commit
32+
mvn clean deploy -B -V
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }}
35+
- name: Rollback pre-release (remove tag)
36+
if: failure()
37+
run: git push origin :refs/tags/${{ github.event.release.tag_name }}

.github/workflows/release-ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Release CI
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
build:
9+
name: Release CI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- run: git checkout ${{ github.event.release.target_commitish }}
16+
- uses: actions/cache@v1
17+
with:
18+
path: ~/.m2/repository
19+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
20+
restore-keys: |
21+
${{ runner.os }}-maven-
22+
- name: Set up JDK 1.8
23+
uses: actions/setup-java@v1
24+
with:
25+
java-version: 1.8
26+
server-id: github
27+
server-username: GITHUB_ACTOR
28+
server-password: GITHUB_TOKEN
29+
- name: Maven Build
30+
run: mvn clean install -DskipTests=true -Ddockerfile.skip=true -B -V
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }}
33+
- name: Maven Verify
34+
run: mvn verify -B
35+
- name: Configure git
36+
run: |
37+
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
38+
git config --global user.name "${GITHUB_ACTOR}"
39+
- name: Prepare release
40+
id: prepare_release
41+
run: |
42+
mvn -B build-helper:parse-version release:prepare \
43+
-DreleaseVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.incrementalVersion} \
44+
-Darguments="-DskipTests=true -Ddockerfile.skip=true"
45+
echo ::set-output name=release_tag::$(git describe --tags --abbrev=0)
46+
- name: Perform release
47+
run: mvn -B release:perform -Darguments="-DskipTests=true -Ddockerfile.skip=true"
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
51+
- name: Rollback release
52+
if: failure()
53+
run: |
54+
mvn release:rollback || echo "nothing to rollback"
55+
git push origin :refs/tags/${{ github.event.release.tag_name }}
56+
if [ ! -z "${{ steps.prepare_release.outputs.release_tag }}" ]
57+
then
58+
git tag -d ${{ steps.prepare_release.outputs.release_tag }}
59+
git push origin :refs/tags/${{ steps.prepare_release.outputs.release_tag }}
60+
fi

.gitignore

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
1-
# Eclipse project files
2-
.project
3-
.classpath
4-
.settings
5-
6-
# IntelliJ IDEA project files and directories
1+
.*
2+
!.gitignore
3+
!.gitattributes
4+
!.github
5+
!.editorconfig
6+
!.*.yml
7+
!.env.example
8+
**/target/
79
*.iml
8-
*.ipr
9-
*.iws
10-
.idea/
11-
12-
# Geany project file
13-
.geany
14-
15-
# KDevelop project file and directory
16-
.kdev4/
17-
*.kdev4
18-
19-
# Build targets
20-
/target
21-
*/target
22-
23-
# Report directories
24-
/reports
25-
*/reports
10+
**/logs/*.log
11+
*.db
2612
*.csv
2713
*.log
28-
*.zip
29-
30-
# Mac-specific directory that no other operating system needs.
31-
.DS_Store
32-
33-
# JVM crash logs
34-
hs_err_pid*.log

.travis.yml

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

.yamllint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
extends: default
2+
rules:
3+
document-start:
4+
present: false
5+
truthy: disable
6+
comments:
7+
min-spaces-from-content: 1
8+
line-length:
9+
max: 150
10+
braces:
11+
min-spaces-inside: 0
12+
max-spaces-inside: 0
13+
brackets:
14+
min-spaces-inside: 0
15+
max-spaces-inside: 0
16+
indentation:
17+
indent-sequences: consistent

LICENSE renamed to LICENSE.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -178,15 +179,15 @@
178179
APPENDIX: How to apply the Apache License to your work.
179180

180181
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "{}"
182+
boilerplate notice, with the fields enclosed by brackets "[]"
182183
replaced with your own identifying information. (Don't include
183184
the brackets!) The text should be enclosed in the appropriate
184185
comment syntax for the file format. We also recommend that a
185186
file or class name and description of purpose be included on the
186187
same "printed page" as the copyright notice for easier
187188
identification within third-party archives.
188189

189-
Copyright {yyyy} {name of copyright owner}
190+
Copyright [yyyy] [name of copyright owner]
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.
@@ -199,4 +200,3 @@
199200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200201
See the License for the specific language governing permissions and
201202
limitations under the License.
202-

pom.xml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,42 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
<modelVersion>4.0.0</modelVersion>
35

46
<parent>
57
<groupId>io.scalecube</groupId>
68
<artifactId>scalecube-parent-pom</artifactId>
7-
<version>0.0.19</version>
9+
<version>0.2.17</version>
810
</parent>
911

10-
1112
<artifactId>reactor-aeron-parent</artifactId>
1213
<version>0.1.5-SNAPSHOT</version>
1314
<packaging>pom</packaging>
15+
<name>ScaleCube/ReactorAeron</name>
16+
17+
<repositories>
18+
<repository>
19+
<id>github</id>
20+
<name>GitHub Packages</name>
21+
<url>https://maven.pkg.github.com/scalecube/packages</url>
22+
<snapshots>
23+
<enabled>false</enabled>
24+
</snapshots>
25+
</repository>
26+
</repositories>
1427

15-
<name>ScaleCube/scalecube-reactor-aeron</name>
28+
<distributionManagement>
29+
<repository>
30+
<id>github</id>
31+
<name>GitHub Packages</name>
32+
<url>https://maven.pkg.github.com/scalecube/reactor-aeron</url>
33+
</repository>
34+
</distributionManagement>
1635

1736
<scm>
1837
<url>https://github.com/scalecube/scalecube</url>
19-
<connection>scm:git:git@github.com:scalecube/reactor-aeron.git</connection>
20-
<developerConnection>scm:git:git@github.com:scalecube/reactor-aeron.git
38+
<connection>scm:git:https://github.com/scalecube/reactor-aeron.git</connection>
39+
<developerConnection>scm:git:https://github.com/scalecube/reactor-aeron.git
2140
</developerConnection>
2241
<tag>HEAD</tag>
2342
</scm>

travis-settings.xml

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

0 commit comments

Comments
 (0)