32 lines
658 B
YAML
32 lines
658 B
YAML
|
name: 代码检查
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
|
- develop
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
name: 代码检查
|
||
|
runs-on: linux_amd64
|
||
|
|
||
|
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:
|
||
|
# To report GitHub Actions status checks
|
||
|
GITHUB_TOKEN: ${{ secrets.MyGitHubToken }}
|