mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
98be3d7b82
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 2.3.4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v2.3.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Frederic Werner <20406381+wernerfred@users.noreply.github.com> Co-authored-by: Georg Lauterbach <44545919+aendeavor@users.noreply.github.com>
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: "Lint"
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ "*" ]
|
|
push:
|
|
branches: [ "master", "stable" ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
with:
|
|
submodules: recursive
|
|
- name: Hadolint
|
|
run: |
|
|
sudo curl -S -L https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-$(uname -s)-$(uname -m) -o /usr/local/bin/hadolint
|
|
sudo chmod +rx /usr/local/bin/hadolint
|
|
make hadolint
|
|
env:
|
|
HADOLINT_VERSION: 1.19.0
|
|
- name: ShellCheck
|
|
run: |
|
|
sudo curl -S -L "https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar -xJ
|
|
sudo mv "shellcheck-v${SHELLCHECK_VERSION}/shellcheck" /usr/bin/
|
|
sudo rm -rf "shellcheck-v${SHELLCHECK_VERSION}"
|
|
make shellcheck
|
|
env:
|
|
SHELLCHECK_VERSION: 0.7.1
|
|
- name: ECLint
|
|
run: |
|
|
sudo curl -S -L "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/${ECLINT_VERSION}/ec-linux-amd64.tar.gz" | tar -xaz
|
|
sudo mv bin/ec-linux-amd64 /usr/bin/eclint
|
|
sudo rm -rf bin
|
|
sudo chmod +x /usr/bin/eclint
|
|
make eclint
|
|
env:
|
|
ECLINT_VERSION: 2.3.1
|