docker-mailserver/.github/workflows/linting.yml
Brennan Kinney 7b4ce69c3f
ci: Fix lint check status update (#2224)
* ci: Fix lint check status update

The lint workflow is not important for this PR, but a fixed requirement to pass for merging.

As this workflow is triggered by `schedule` or `workflow_dispatch`, it will not trigger other events such as `pull_request` for other workflows to respond to.

Since the linting workflow is not important for this type of PR, we can pretend it was "skipped" and set the check status to "success". This is simpler than running the actual Lint workflow redundantly.

* ci: Remove workflow_run approach

This didn't work out, reverting.
2021-09-29 09:13:58 +13:00

36 lines
582 B
YAML

name: "Lint"
on:
pull_request:
branches: [ "*" ]
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
submodules: recursive
- name: Hadolint
run: |
make hadolint
env:
HADOLINT_VERSION: 2.4.1
- name: ShellCheck
run: |
make shellcheck
env:
SHELLCHECK_VERSION: 0.7.2
- name: ECLint
run: |
make eclint
env:
ECLINT_VERSION: 2.3.5