2021-01-16 09:16:05 +00:00
|
|
|
name: "Lint"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ "*" ]
|
|
|
|
push:
|
2021-05-17 07:45:27 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2021-01-16 09:16:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
2021-01-16 14:34:31 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2021-01-16 09:16:05 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2021-05-12 09:51:46 +00:00
|
|
|
uses: actions/checkout@v2.3.4
|
2021-01-16 09:16:05 +00:00
|
|
|
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
|