From 8ba519cbe7b11e984fbb4abce54b290cfe85f815 Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Sun, 5 Dec 2021 18:53:58 +0300 Subject: [PATCH] Add lint workflow --- .github/workflows/lint.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9c644a58..68160c5f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,22 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: ludeeus/action-shellcheck@1.1.0 - env: - SHELLCHECK_OPTS: -x + - name: Checkout + uses: actions/checkout@v2 + + - 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