Skip to content

New RumbleDB 3.0.0 CLI and configuration API #6922

New RumbleDB 3.0.0 CLI and configuration API

New RumbleDB 3.0.0 CLI and configuration API #6922

Workflow file for this run

# 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: Java CI with Maven
on:
push:
branches:
- 'master'
- 'next'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the repository
uses: actions/checkout@v5
- name: Set up Java 17
uses: actions/setup-java@v5
with:
java-version: 17
distribution: temurin
# Github ubuntu contain Maven, but other testing software use minimal size container
- name: Check if Maven is Installed
run: |
if ! command -v mvn &> /dev/null
then
echo "Maven not found! Installing..."
sudo apt-get update && sudo apt-get install -y maven
else
echo "Maven is already installed:"
mvn -version
fi
- name: Cache Maven packages
uses: actions/cache@v5
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Install with Maven
run: mvn install -DskipTests -Dgpg.skip --quiet
- name: Compile with Maven
run: mvn clean compile assembly:single
- name: Spotless Check
run: mvn spotless:check
- name: Upload Build Artifacts
uses: actions/upload-artifact@v6
with:
name: Package
path: target/*.jar
tests:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test_class: [
"FrontendTests",
"BackwardsCompatibilityTests",
"RegexPatternUtilsTest",
"RuntimeTests",
"RuntimeTestsNoParallelism",
"RuntimeTestsNoInlining",
"StaticTypeTests",
"JavaAPITest",
"SparkRuntimeTests",
"SparkRuntimeTestsNativeDeactivated",
"SparkRuntimeTestsDataFramesDeactivated",
"SparkRuntimeTestsParallelismDeactivated",
"Bugs",
"NativeFLWORRuntimeTests",
"NativeFLWORRuntimeTestsNativeDeactivated",
"NativeFLWORRuntimeTestsDataFramesDeactivated",
"NativeFLWORRuntimeTestsParallelismDeactivated",
"MLTests",
"MLTestsNativeDeactivated",
"XMLTests",
"XQueryTests",
"DeltaUpdateRuntimeTests",
"IcebergUpdateRuntimeTests",
"org.rumbledb.**.*Test"
]
steps:
- uses: actions/checkout@v5
- name: Set up Java 17
uses: actions/setup-java@v5
with:
java-version: 17
distribution: temurin
- name: Restore Cached Maven Packages
uses: actions/cache@v5
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- name: Download Compiled Artifacts
uses: actions/download-artifact@v8
with:
name: Package
path: target
- name: Run Test ${{ matrix.test_class }}
run: mvn -Dtest='${{ matrix.test_class }}' test
- name: Publish Surefire Report ${{ matrix.test_class }}
if: always()
uses: ScalableCapital/action-surefire-report@v2
with:
report_paths: target/surefire-reports/TEST-*.xml
create_check: false
fail_on_test_failures: false
fail_if_no_tests: false
report_mode: workflow