You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by li...@apache.org on 2020/03/09 09:44:26 UTC
[submarine] branch master updated: SUBMARINE-412. Basic GitHub
aciton support for submarine project
This is an automated email from the ASF dual-hosted git repository.
liuxun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git
The following commit(s) were added to refs/heads/master by this push:
new 6670fe0 SUBMARINE-412. Basic GitHub aciton support for submarine project
6670fe0 is described below
commit 6670fe0487f226d300279a062bd3ba538e44b30c
Author: Kent Yao <ya...@hotmail.com>
AuthorDate: Mon Mar 9 11:15:25 2020 +0800
SUBMARINE-412. Basic GitHub aciton support for submarine project
### What is this PR for?
Add build/rat/linter GitHub actions for a fast check to help developers to fix trivial things
### What type of PR is it?
Improvement
### Todos
* [ ] - rm same logic in travis untils this is stable
### What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-412
### How should this be tested?
GitHub action triggered
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
Author: Kent Yao <ya...@hotmail.com>
Closes #210 from yaooqinn/githubaction and squashes the following commits:
055503a [Kent Yao] add rat and linter
af9d7e2 [Kent Yao] fix rat
6603036 [Kent Yao] nit
9ca40e1 [Kent Yao] nit
d11334d [Kent Yao] Enable Github Actions
---
.github/workflows/master.yml | 42 ++++++++++++++++++++++++++++++++++++++++++
pom.xml | 2 +-
2 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
new file mode 100644
index 0000000..ce18aa3
--- /dev/null
+++ b/.github/workflows/master.yml
@@ -0,0 +1,42 @@
+name: Submarine
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: '1.8'
+ - name: Build with Maven
+ run: |
+ export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN"
+ mvn --no-transfer-progress -DskipTests install
+ rat:
+ name: Check License
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-java@v1
+ with:
+ java-version: '1.8'
+ - run: mvn clean org.apache.rat:apache-rat-plugin:check
+
+ linter:
+ name: Check Style
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-java@v1
+ with:
+ java-version: '1.8'
+ - run: mvn checkstyle:check
diff --git a/pom.xml b/pom.xml
index 0ecee18..74fcf59 100644
--- a/pom.xml
+++ b/pom.xml
@@ -504,7 +504,7 @@
<configuration>
<excludes>
<exclude>.git/</exclude>
- <exclude>.github/*</exclude>
+ <exclude>.github/**</exclude>
<exclude>.gitignore</exclude>
<exclude>.gitmodules</exclude>
<exclude>.editorconfig</exclude>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org