You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by jf...@apache.org on 2021/09/11 08:55:03 UTC
[iotdb-web-workbench] branch loveher147/master updated: Add GH
actions
This is an automated email from the ASF dual-hosted git repository.
jfeinauer pushed a commit to branch loveher147/master
in repository https://gitbox.apache.org/repos/asf/iotdb-web-workbench.git
The following commit(s) were added to refs/heads/loveher147/master by this push:
new 1426284 Add GH actions
1426284 is described below
commit 1426284bfc5b5794b020e6a4beacbb42d57bbbd7
Author: Julian Feinauer <j....@pragmaticminds.de>
AuthorDate: Sat Sep 11 10:54:52 2021 +0200
Add GH actions
---
.github/workflows/default.yml | 55 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml
new file mode 100644
index 0000000..efd1c77
--- /dev/null
+++ b/.github/workflows/default.yml
@@ -0,0 +1,55 @@
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: Main Mac and Linux
+
+on:
+ push:
+ branches:
+ - master
+ - 'rel/*'
+ - Vector
+ paths-ignore:
+ - 'docs/**'
+ pull_request:
+ branches:
+ - master
+ - 'rel/*'
+ - cluster_new
+ - Vector
+ paths-ignore:
+ - 'docs/**'
+ # allow manually run the action:
+ workflow_dispatch:
+
+env:
+ MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
+
+jobs:
+ unix:
+ strategy:
+ fail-fast: false
+ max-parallel: 20
+ matrix:
+ java: [ 8, 11, 16 ]
+ os: [ ubuntu-latest, macos-latest ]
+ runs-on: ${{ matrix.os}}
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: Cache Maven packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2-
+ - name: Check Apache Rat
+ run: cd backend && mvn -B apache-rat:check -P site -P code-coverage
+ - name: IT/UT Test
+ shell: bash
+ # we do not compile client-cpp for saving time, it is tested in client.yml
+ run: cd backend && mvn -B clean post-integration-test -Dtest.port.closed=true -P '!testcontainer'