ci: update CI workflow to use Super-linter for linting
This commit is contained in:
parent
5cb08ca5f8
commit
da50d19f9d
1 changed files with 18 additions and 7 deletions
|
@ -4,15 +4,26 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linelint:
|
build:
|
||||||
|
name: Lint
|
||||||
runs-on: vps-4
|
runs-on: vps-4
|
||||||
name: Check if all files end in newline
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: read
|
||||||
|
# To report GitHub Actions status checks
|
||||||
|
statuses: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Linelint
|
with:
|
||||||
uses: actions/linelint@master
|
# super-linter needs the full git history to get the
|
||||||
id: linelint
|
# list of files that changed across commits
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Super-linter
|
||||||
|
uses: super-linter/super-linter@v7.2.1 # x-release-please-version
|
||||||
|
|
||||||
checkstyle:
|
checkstyle:
|
||||||
name: "Checkstyle Main"
|
name: "Checkstyle Main"
|
||||||
|
|
Reference in a new issue