blob: 6f46e196c401c7800dbd36034ab014c443f4c3e2 [file] [log] [blame]
#
# 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: E2E - ShowProcesslist
on:
push:
branches: [ master, dev ]
paths:
- '.github/workflows/e2e-showprocesslist.yml'
- 'infra/common/src/main/**'
- 'mode/**/src/main/**'
- 'proxy/**/src/main/**'
- 'jdbc/core/src/main/**'
- '!test/**'
- 'test/pom.xml'
- 'test/e2e/fixture/**'
- 'test/e2e/env/**'
- 'test/e2e/showprocesslist/**'
- '!*.md'
pull_request:
branches: [ master ]
paths:
- '.github/workflows/e2e-showprocesslist.yml'
- 'infra/common/src/main/**'
- 'mode/**/src/main/**'
- 'proxy/**/src/main/**'
- 'jdbc/core/src/main/**'
- '!test/**'
- 'test/pom.xml'
- 'test/e2e/fixture/**'
- 'test/e2e/env/**'
- 'test/e2e/showprocesslist/**'
- '!*.md'
workflow_dispatch:
concurrency:
group: it-showprocesslist-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotless.apply.skip=true -Djacoco.skip=true -Drat.skip=true -Dfailsafe.skipAfterFailureCount=1 -Dio.netty.leakDetectionLevel=advanced
REPOSITORY_NAME: shardingsphere
jobs:
showprocesslist-it-test:
name: showprocesslist-it-test
runs-on: ubuntu-latest
env:
mysql_version: 5.7
timeout-minutes: 10
strategy:
matrix:
mode: [ Standalone, Cluster ]
steps:
- uses: actions/checkout@v3
- name: Cache Maven Repos
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ env.REPOSITORY_NAME }}-maven-third-party-it-cache${{ github.sha }}
restore-keys: |
${{ env.REPOSITORY_NAME }}-maven-third-party-it-cache
${{ env.REPOSITORY_NAME }}-maven-third-party-
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Build ShowProcesslist IT image
run: ./mvnw -B clean install -am -pl test/e2e/showprocesslist -Pit.env.docker -DskipTests
- name: Setup JDK 8 for Test
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
- name: Run MySQL ShowProcesslist E2E Test
run: ./mvnw -nsu -B install -f test/e2e/showprocesslist/pom.xml -Dit.env.type=docker -Dit.scenarios=cluster_jdbc_proxy -Dit.run.modes=${{ matrix.mode }}