Skip to content

Add stable diagnostic categories #45

Add stable diagnostic categories

Add stable diagnostic categories #45

Workflow file for this run

#
# 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.
#
name: CI - MCP
on:
pull_request:
branches: [ master ]
paths:
- '.github/workflows/ci-mcp.yml'
- 'pom.xml'
- 'mcp/**'
workflow_dispatch:
concurrency:
group: ci-mcp-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dspotless.apply.skip=true
jobs:
mcp-unit-tests:
name: MCP - Unit Tests with JDK 21
if: github.repository == 'apache/shardingsphere'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6.0.1
- uses: ./.github/workflows/resources/actions/setup-build-environment
with:
java-version: '21'
cache-suffix: 'mcp'
- name: Run MCP Unit Tests
shell: bash
run: |
set -euo pipefail
MCP_MODULES=mcp/api,mcp/support,mcp/core,mcp/features/encrypt,mcp/features/mask
MCP_MODULES="${MCP_MODULES},mcp/bootstrap,mcp/registry"
./mvnw -pl "${MCP_MODULES}" -am install \
-DskipITs -Dspotless.skip=true \
-Dsurefire.failIfNoSpecifiedTests=false \
-B -ntp