feat: add support for map:size function #4971
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Java 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: 17 | |
| distribution: adopt | |
| # 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@v4 | |
| 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@v4 | |
| with: | |
| name: Package | |
| path: target/*.jar | |
| tests: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| test_class: [ | |
| "FrontendTests", | |
| "RuntimeTests", | |
| "RuntimeTestsNoParallelism", | |
| "RuntimeTestsNoInlining", | |
| "StaticTypeTests", | |
| "JavaAPITest", | |
| "SparkRuntimeTests", | |
| "SparkRuntimeTestsNativeDeactivated", | |
| "SparkRuntimeTestsDataFramesDeactivated", | |
| "SparkRuntimeTestsParallelismDeactivated", | |
| "Bugs", | |
| "NativeFLWORRuntimeTests", | |
| "NativeFLWORRuntimeTestsNativeDeactivated", | |
| "NativeFLWORRuntimeTestsDataFramesDeactivated", | |
| "NativeFLWORRuntimeTestsParallelismDeactivated", | |
| "MLTests", | |
| "MLTestsNativeDeactivated", | |
| "XMLTests", | |
| "XQueryTests", | |
| "DeltaUpdateRuntimeTests", | |
| "IcebergUpdateRuntimeTests" | |
| ] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Java 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: 17 | |
| distribution: adopt | |
| - name: Restore Cached Maven Packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| - name: Download Compiled Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: Package | |
| path: target | |
| - name: Run Test ${{ matrix.test_class }} | |
| run: mvn -Dtest=${{ matrix.test_class }} test |