mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-02 17:14:31 +02:00
scripts: revised linting script (#2737)
The new version uses our `log.sh` helper to simplify logging significantly. Moreover, the script was adjusted to the current style and the GitHub workflow was streamlined. The workflow is ot providing the version anymore (which was useless anyway), and has been compacted.
This commit is contained in:
parent
26d241381f
commit
8a4329ae9f
2 changed files with 37 additions and 95 deletions
23
.github/workflows/linting.yml
vendored
23
.github/workflows/linting.yml
vendored
|
@ -1,11 +1,9 @@
|
|||
name: "Lint"
|
||||
name: Lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ "*" ]
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
branches: [ master ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
@ -16,23 +14,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Hadolint
|
||||
run: |
|
||||
make hadolint
|
||||
env:
|
||||
HADOLINT_VERSION: 2.4.1
|
||||
run: make hadolint
|
||||
|
||||
- name: ShellCheck
|
||||
run: |
|
||||
make shellcheck
|
||||
env:
|
||||
SHELLCHECK_VERSION: 0.8.0
|
||||
run: make shellcheck
|
||||
|
||||
- name: ECLint
|
||||
run: |
|
||||
make eclint
|
||||
env:
|
||||
ECLINT_VERSION: 2.3.5
|
||||
run: make eclint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue