diff --git a/.github/workflows/code-check.yaml b/.github/workflows/code-check.yaml
index cc4bae7..fc049d7 100644
--- a/.github/workflows/code-check.yaml
+++ b/.github/workflows/code-check.yaml
@@ -1,34 +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 }}
- CHECKSTYLE_FILTER_PATH: ".github/workflows/checkstyle.xml"
\ No newline at end of file
+ github_token: ${{ secrets.MyGitHubToken }}
+ reporter: 'github-pr-check'
+ tool_name: 'testtool'
+ checkstyle_config: 'checkstyle.xml'
\ No newline at end of file
diff --git a/.github/workflows/checkstyle.xml b/checkstyle.xml
similarity index 83%
rename from .github/workflows/checkstyle.xml
rename to checkstyle.xml
index 56a7b46..5a5e9d2 100644
--- a/.github/workflows/checkstyle.xml
+++ b/checkstyle.xml
@@ -13,17 +13,15 @@
+
+
+
+
+
+
-
-
-
-
-
-
-
-
@@ -31,19 +29,12 @@
-
-
+
-
-
-
-
-
-
@@ -77,11 +68,6 @@
-
-
-
-
-
@@ -139,15 +125,8 @@
-
-
-
-
-
-
-
@@ -159,8 +138,6 @@
-
-
-
+
@@ -205,4 +182,4 @@
-
+
\ No newline at end of file