Update instructions #23
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: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
yaml_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: YAML Lint | |
uses: docker://cytopia/yamllint | |
with: | |
entrypoint: /bin/ash | |
args: -c "yamllint -f colored $(find . -name '*.yml')" | |
rst_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: RST Lint | |
uses: docker://python:latest | |
with: | |
entrypoint: /bin/bash | |
args: -c "pip install restructuredtext-lint && rst-lint --level info *.rst" | |
shell_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Shell Lint | |
run: | | |
sudo apt-get update && sudo apt-get install -y shellcheck | |
find . -name "*.sh" | xargs -n 1 shellcheck --color=always || true |