[PATCH] 规范化补丁 #6
44
.github/workflows/code-check.yaml
vendored
44
.github/workflows/code-check.yaml
vendored
|
@ -1,36 +1,16 @@
|
|||
name: 代码检查
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: 代码检查
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: read
|
||||
statuses: write
|
||||
|
||||
checkstyle_job:
|
||||
runs-on: ubuntu-latest
|
||||
name: Checkstyle job
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Run check style
|
||||
uses: nikitasavinov/checkstyle-action@master
|
||||
with:
|
||||
# super-linter needs the full git history to get the
|
||||
# list of files that changed across commits
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Super-linter
|
||||
uses: super-linter/super-linter@v6.3.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.MyGitHubToken }}
|
||||
JAVA_FILE_NAME: ".github/workflows/checkstyle.xml"
|
||||
IGNORE_GITIGNORED_FILES: true
|
||||
VALIDATE_GOOGLE_JAVA_FORMAT: false
|
||||
github_token: ${{ MyGitHubToken.GITHUB_TOKEN }}
|
||||
reporter: 'github-pr-check'
|
||||
tool_name: 'testtool'
|
||||
checkstyle_config: 'checkstyle.xml'
|
Loading…
Reference in New Issue
Block a user