You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TRaSH-Guides/.github/workflows/lint.yml

42 lines
1.2 KiB

4 years ago
name: Lint
on: [push, pull_request]
jobs:
4 years ago
editorconfig-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
4 years ago
- name: editorconfig-checker
run: |
docker run --rm \
2 years ago
-v "${GITHUB_WORKSPACE}":/check \
mstruebing/editorconfig-checker
4 years ago
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
4 years ago
- name: markdownlint
run: |
find "${GITHUB_WORKSPACE}" -name '*.md' -exec \
docker run --rm \
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \
markdownlint/markdownlint \
-r ~MD013,~MD033,~MD034,~MD046,~MD002,~MD041 \
{} +
4 years ago
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
4 years ago
- name: yamllint
run: |
find "${GITHUB_WORKSPACE}" -name '*.yaml' -o -name '*.yml' -exec \
docker run --rm \
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \
peterdavehello/yamllint \
yamllint -d '{"extends":"default","rules":{"document-start":{"present":false},"line-length":"disable","truthy":{"check-keys":false}}}' \
{} +