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