Merge pull request #35 from GhostWriters/imgbot #17
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/[email protected] | |
- name: editorconfig-checker | |
run: | | |
docker run --rm -v ${GITHUB_WORKSPACE}:/check mstruebing/editorconfig-checker | |
markdownlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: markdownlint | |
run: | | |
find ~+ ${github_workspace} -name '*.md' | xargs docker run --rm -v ${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE} markdownlint/markdownlint -r ~MD013,~MD033,~MD034 | |
shellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: shellcheck | |
run: | | |
find ~+ ${github_workspace} -name '*.sh' | xargs docker run --rm -v ${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE} koalaman/shellcheck | |
shfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: shfmt | |
run: | | |
find ~+ ${github_workspace} -name '*.sh' | xargs docker run --rm -v ${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE} mvdan/shfmt -s -d | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- 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}}' |