druid/.github/workflows/unit-tests.yml

61 lines
2.3 KiB
YAML

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License
on:
workflow_call:
inputs:
jdk:
required: true
type: string
description: 'JDK version used to test Druid'
sql_compatibility:
required: false
type: boolean
default: true
description: 'For SQL compatibility'
jobs:
indexing_modules_test:
uses: apache/druid/.github/workflows/reusable-unit-tests.yml@master
with:
jdk: ${{ inputs.jdk }}
sql_compatibility: ${{ inputs.sql_compatibility }}
module: indexing
maven_projects: 'indexing-hadoop,indexing-service,extensions-core/kafka-indexing-service,extensions-core/kinesis-indexing-service'
processing_modules_test:
uses: apache/druid/.github/workflows/reusable-unit-tests.yml@master
with:
jdk: ${{ inputs.jdk }}
sql_compatibility: ${{ inputs.sql_compatibility }}
module: processing
maven_projects: 'processing'
server_modules_test:
uses: apache/druid/.github/workflows/reusable-unit-tests.yml@master
with:
jdk: ${{ inputs.jdk }}
sql_compatibility: ${{ inputs.sql_compatibility }}
module: server
maven_projects: 'server'
other_modules_test:
uses: apache/druid/.github/workflows/reusable-unit-tests.yml@master
with:
jdk: ${{ inputs.jdk }}
sql_compatibility: ${{ inputs.sql_compatibility }}
module: other
maven_projects: '!processing,!indexing-hadoop,!indexing-service,!extensions-core/kafka-indexing-service,!extensions-core/kinesis-indexing-service,!server,!web-console,!integration-tests,!:druid-it-tools,!:druid-it-image,!:druid-it-cases'