docker-mailserver/.github/workflows/linting.yml
Brennan Kinney 03052a65b8
ci: Allow lint workflow to be manually triggered (#3714)
* 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.
2023-12-19 18:59:59 +13:00

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