You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nemo.apache.org by wo...@apache.org on 2022/10/25 09:49:37 UTC

[incubator-nemo] 01/01: Migrate from travis to GitHub actions

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

wonook pushed a commit to branch github_action_ci
in repository https://gitbox.apache.org/repos/asf/incubator-nemo.git

commit ecc8d33edbbdb2b237b221a50b131ac87fcefb4a
Author: Won Wook SONG <wo...@apache.org>
AuthorDate: Tue Oct 25 18:49:31 2022 +0900

    Migrate from travis to GitHub actions
---
 maven.yml | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/maven.yml b/maven.yml
new file mode 100644
index 000000000..d4ad4e805
--- /dev/null
+++ b/maven.yml
@@ -0,0 +1,33 @@
+# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
+
+name: Java CI with Maven
+
+on:
+  push:
+    branches: [ "master" ]
+  pull_request:
+    branches: [ "master" ]
+
+jobs:
+  build:
+    name: Build on Java ${{ matrix.java_version }} and ${{ matrix.os }}
+
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        java_version: ['8', '11']
+        os: [ubuntu-latest, ubuntu-18.04]
+
+    steps:
+    - uses: actions/checkout@v3
+    - name: Set up JDK 11
+      uses: actions/setup-java@v3
+      with:
+        java-version: ${{ matrix.java_version }}
+        distribution: 'adopt'
+        cache: maven
+    - name: Build with Maven
+      run: mvn -B package --file pom.xml
+
+# We need node testing too