Small changes #329
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
# This file is maintained in https://github.com/WeblateOrg/meta/ | |
name: ESLint | |
on: | |
push: | |
branches-ignore: | |
- "dependabot/**" | |
- weblate | |
pull_request: | |
jobs: | |
eslint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
path: | | |
~/.cache/pip | |
~/.cache/pre-commit | |
key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/requirements*.txt') }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install -r requirements-lint.txt | |
- name: Run eslint | |
run: | | |
echo "::add-matcher::.github/matchers/eslint-compact.json" | |
pre-commit run eslint --all | |
echo "::remove-matcher owner=eslint-compact::" |