Merge pull request #1788 from CLHatch/multi-instance #2873
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: [push, pull_request] | |
jobs: | |
editorconfig-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- name: editorconfig-checker | |
run: | | |
docker run --rm \ | |
-v "${GITHUB_WORKSPACE}":/check \ | |
mstruebing/editorconfig-checker | |
markdownlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- name: markdownlint | |
run: | | |
docker run --rm \ | |
-v "${GITHUB_WORKSPACE}":/workdir \ | |
ghcr.io/igorshubovych/markdownlint-cli \ | |
--ignore "docs/index.md" \ | |
--disable MD013 MD033 -- \ | |
"**/*.md" | |
shellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- name: shellcheck | |
run: | | |
find "${GITHUB_WORKSPACE}" -name '*.sh' -exec \ | |
docker run --rm \ | |
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \ | |
koalaman/shellcheck \ | |
{} + | |
shfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- name: shfmt | |
run: | | |
find "${GITHUB_WORKSPACE}" -name '*.sh' -exec \ | |
docker run --rm \ | |
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \ | |
mvdan/shfmt \ | |
-s -d \ | |
{} + | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- name: yamllint | |
run: | | |
docker run --rm \ | |
-v "${PWD}":/yaml \ | |
peterdavehello/yamllint \ | |
yamllint \ | |
-d '{"extends":"default","rules":{"document-start":{"present":false},"line-length":"disable","truthy":{"check-keys":false}}}' \ | |
"." |