2024-04-09 20:39:24 +08:00
|
|
|
name: 代码检查
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2024-04-09 20:56:36 +08:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
2024-04-09 20:39:24 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: 代码检查
|
2024-04-09 23:02:58 +08:00
|
|
|
runs-on: ubuntu-22.04
|
2024-04-09 20:39:24 +08:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: read
|
|
|
|
statuses: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Super-linter
|
|
|
|
uses: super-linter/super-linter@v6.3.1
|
|
|
|
env:
|
2024-04-09 23:56:39 +08:00
|
|
|
GITHUB_TOKEN: ${{ secrets.MyGitHubToken }}
|
2024-04-10 09:04:58 +08:00
|
|
|
VALIDATE_ALL_CODEBASE: false
|
|
|
|
IGNORE_GITIGNORED_FILES: true
|
|
|
|
VALIDATE_JAVA: true
|
|
|
|
JAVA_FILE_NAME: alibaba-checkstyle.xml
|
|
|
|
DEFAULT_BRANCH: master
|
|
|
|
ACTIONS_RUNNER_DEBUG: true
|