Add lint workflow

This commit is contained in:
Lev Vereshchagin 2021-12-05 18:53:58 +03:00
parent 5aefa795d1
commit 8ba519cbe7

View file

@ -16,7 +16,22 @@ jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout
- uses: ludeeus/action-shellcheck@1.1.0 uses: actions/checkout@v2
env:
SHELLCHECK_OPTS: -x - name: Setup Python
uses: actions/setup-python@v2
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cache/pre-commit
~/.cache/pip
key: lint-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: pip install -U pre-commit
- name: Lint
run: pre-commit run --color=always --all-files