mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
7b4ce69c3f
* 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.
36 lines
582 B
YAML
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
|