This is an automated email from the ASF dual-hosted git repository. qiaojialin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/iotdb-web-workbench.git
commit 6a80ff02a672220457b3c8acc2973654455aa121 Author: Julian Feinauer <[email protected]> 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'
