You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2021/01/11 04:04:19 UTC

[orc] branch branch-1.5 updated: ORC-648: Add GitHub Action for Java8/11 test coverage (#620)

This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-1.5
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/branch-1.5 by this push:
     new 1c28a89  ORC-648: Add GitHub Action for Java8/11 test coverage (#620)
1c28a89 is described below

commit 1c28a8925d4de47aaef9eeae7f57d3dbc15dcd3c
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Sun Jan 10 20:04:08 2021 -0800

    ORC-648: Add GitHub Action for Java8/11 test coverage (#620)
    
    ### What changes were proposed in this pull request?
    
    This PR aims to add `GitHub Action` for explicit Java 8/11 test coverage. Since this is an independent CI setup, this will not interfere with the existing CIs.
    
    ### Why are the changes needed?
    
    Apache ORC is currently using
    - Travis CI for testing various `clang` versions on Trusty and Mac with JDK7.
    - Appveyor CI for testing Visual Studio on Windows OS.
    
    ### How was this patch tested?
    
    Check the Github Action result on this PR.
---
 .github/workflows/build_and_test.yml | 48 ++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
new file mode 100644
index 0000000..a3dae92
--- /dev/null
+++ b/.github/workflows/build_and_test.yml
@@ -0,0 +1,48 @@
+name: Build and test
+
+on:
+  push:
+    branches:
+    - branch-1.5
+  pull_request:
+    branches:
+    - branch-1.5
+
+jobs:
+  build:
+    name: "Build with Java ${{ matrix.java }}"
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        java:
+          - 1.8
+          - 11
+    env:
+      MAVEN_OPTS: -Xmx2g
+      MAVEN_SKIP_RC: true
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v2
+    - name: Cache Maven local repository
+      uses: actions/cache@v2
+      with:
+        path: ~/.m2/repository
+        key: ${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
+        restore-keys: |
+          ${{ matrix.java }}-maven-
+    - name: Install Java ${{ matrix.java }}
+      uses: actions/setup-java@v1
+      with:
+        java-version: ${{ matrix.java }}
+    - name: "Test"
+      run: |
+        sudo apt-get update
+        sudo apt-get install libsasl2-dev
+        mkdir -p ~/.m2
+        mkdir build
+        cd build
+        cmake ..
+        make package test-out
+        cd ../java
+        mvn apache-rat:check