Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Java CI

on:
push:
branches:
- '*'
pull_request:
types: ['opened', 'reopened', 'synchronize']

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ["8", "11", "17"]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Build with Maven
run: .ci/run_ci.sh java${{ matrix.java-version }}
63 changes: 63 additions & 0 deletions ci/run_ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#! /usr/bin/env bash
set -e
set -x

ROOT="$(git rev-parse --show-toplevel)"
cd "$ROOT"

case $1 in
java8)
echo "Executing fury java tests"
cd "$ROOT/java"
# check google java style
mvn -T16 -B spotless:check
# check naming and others
mvn -T16 checkstyle:check
set +e
mvn -T16 test
testcode=$?
if [[ $testcode -ne 0 ]]; then
exit $testcode
fi
echo "Executing fury java tests succeeds"
;;
java11)
java -version
echo "Executing fury java tests"
cd "$ROOT/java"
# check google java style
mvn -T16 -B spotless:check
# check naming and others
mvn -T16 checkstyle:check
set +e
mvn -T16 test
testcode=$?
if [[ $testcode -ne 0 ]]; then
exit $testcode
fi
echo "Executing fury java tests succeeds"
;;
java17)
java -version
echo "Executing fury java tests"
cd "$ROOT/java"
# check google java style
mvn -T16 -B spotless:check
# check naming and others
mvn -T16 checkstyle:check
set +e
mvn -T16 test -pl '!fury-format,!fury-testsuite,!fury-benchmark'
testcode=$?
if [[ $testcode -ne 0 ]]; then
exit $testcode
fi
echo "Executing fury java tests succeeds"
;;
format)
echo "Executing format check"
cd "$ROOT/java"
mvn -T10 license:format
mvn -T10 spotless:apply
mvn -T10 checkstyle:check
;;
esac
4 changes: 2 additions & 2 deletions java/fury-core/src/main/java/io/fury/Fury.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.fury;

public class Fury {
}
public class Fury {}
3 changes: 1 addition & 2 deletions java/fury-core/src/test/java/io/fury/FuryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@
*/
package io.fury;

public class FuryTest {
}
public class FuryTest {}
4 changes: 2 additions & 2 deletions java/fury-format/src/main/java/io/fury/format/row/Row.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.fury.format.row;

public class Row {
}
public class Row {}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@
*/
package io.fury.format.row;

public class RowTest {
}
public class RowTest {}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.fury.test.bean;

public class Foo {
}
public class Foo {}