34 lines
708 B
YAML
34 lines
708 B
YAML
name: 代码检查
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- develop
|
|
|
|
jobs:
|
|
build:
|
|
name: 代码检查
|
|
runs-on: ubuntu-22.04
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
statuses: write
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
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" |