From 2859a1f70e1df2b18a77ee0ba74e51b338deac4e Mon Sep 17 00:00:00 2001 From: XiaoLFeng Date: Wed, 10 Apr 2024 01:55:35 +0800 Subject: [PATCH] patch: test --- .github/workflows/code-check.yaml | 44 +++++-------------- .../checkstyle.xml => checkstyle.xml | 0 2 files changed, 12 insertions(+), 32 deletions(-) rename .github/workflows/checkstyle.xml => checkstyle.xml (100%) diff --git a/.github/workflows/code-check.yaml b/.github/workflows/code-check.yaml index ebfdd4c..ae809db 100644 --- a/.github/workflows/code-check.yaml +++ b/.github/workflows/code-check.yaml @@ -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 \ No newline at end of file + github_token: ${{ MyGitHubToken.GITHUB_TOKEN }} + 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 100% rename from .github/workflows/checkstyle.xml rename to checkstyle.xml