mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
03052a65b8
* ci: Allow lint workflow to be manually triggered Without this a different event must occur to trigger the workflow, which is inconvenient for automated PRs.
29 lines
491 B
YAML
29 lines
491 B
YAML
name: Lint
|
|
|
|
on:
|
|
# A workflow that creates a PR will not trigger this workflow,
|
|
# Providing a manual trigger as a workaround
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Hadolint
|
|
run: make hadolint
|
|
|
|
- name: ShellCheck
|
|
run: make shellcheck
|
|
|
|
- name: ECLint
|
|
run: make eclint
|