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

29 lines
978 B

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