forked from WeblateOrg/weblate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 977 Bytes
/
eslint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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::"