blob: 3835e2753d81efe208a016b1f129d4d1f0897535 [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: Check
on:
push:
branches: [ master, dev ]
paths:
- '**/src/main/**'
- '**/src/test/**'
- '.github/workflows/checkstyle-and-license-check.yml'
- 'examples/shardingsphere-example-generator/**'
- '!examples/**'
- '!*.md'
pull_request:
branches: [ master ]
paths:
- '**/src/main/**'
- '**/src/test/**'
- 'src/resources/**'
- '.github/workflows/checkstyle-and-license-check.yml'
- 'examples/shardingsphere-example-generator/**'
- 'test/e2e/agent/plugins/**'
- '!examples/**'
- '!*.md'
workflow_dispatch:
concurrency:
group: check-${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
REPOSITORY_NAME: shardingsphere
jobs:
check-checkstyle:
name: Check - checkstyle
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ env.REPOSITORY_NAME }}-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ env.REPOSITORY_NAME }}-maven-third-party-
- name: Run checkstyle
run: ./mvnw checkstyle:check -T1C
check-license:
name: Check - license
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: apache/skywalking-eyes@v0.4.0