mirror of
https://github.com/AdguardTeam/AdguardFilters.git
synced 2026-08-29 12:14:41 +00:00
Update AGLint to v4.0.0 beta (#218970)
* Update AGLint to v4.0.0-beta.0 * Update AGLint config * Fix rule name in disable comments * Remove unnecessary disable comments * Fix pseudo elements * Update AGLint to v4.0.0-beta.1 * Enable caching for AGLint * Add AGLint ignore file * Use ignore file for cache calculation * Update AGLint cache strategy * Update AGLint to 4.0.0-beta.2
This commit is contained in:
49
.github/workflows/aglint.yml
vendored
49
.github/workflows/aglint.yml
vendored
@@ -9,16 +9,37 @@ on:
|
||||
- master
|
||||
paths:
|
||||
- "**/*.txt"
|
||||
- ".aglintrc.*"
|
||||
- "package.json"
|
||||
|
||||
- "**/.aglintignore"
|
||||
|
||||
- "**/.aglintrc"
|
||||
- "**/.aglintrc.json"
|
||||
- "**/.aglintrc.yaml"
|
||||
- "**/.aglintrc.yml"
|
||||
- "**/aglint.config.json"
|
||||
- "**/aglint.config.yaml"
|
||||
- "**/aglint.config.yml"
|
||||
- "**/package.json"
|
||||
|
||||
- "package-lock.json"
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- "**/*.txt"
|
||||
- ".aglintrc.*"
|
||||
- "package.json"
|
||||
|
||||
- "**/.aglintignore"
|
||||
|
||||
- "**/.aglintrc"
|
||||
- "**/.aglintrc.json"
|
||||
- "**/.aglintrc.yaml"
|
||||
- "**/.aglintrc.yml"
|
||||
- "**/aglint.config.json"
|
||||
- "**/aglint.config.yaml"
|
||||
- "**/aglint.config.yml"
|
||||
- "**/package.json"
|
||||
|
||||
- "package-lock.json"
|
||||
|
||||
jobs:
|
||||
@@ -38,6 +59,26 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: AGLint cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .aglintcache
|
||||
key: >
|
||||
${{ runner.os }}-aglint-${{ hashFiles(
|
||||
'**/.aglintignore',
|
||||
'**/.aglintrc',
|
||||
'**/.aglintrc.json',
|
||||
'**/.aglintrc.yaml',
|
||||
'**/.aglintrc.yml',
|
||||
'**/aglint.config.json',
|
||||
'**/aglint.config.yaml',
|
||||
'**/aglint.config.yml',
|
||||
'**/package.json',
|
||||
'package-lock.json'
|
||||
) }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-aglint-
|
||||
|
||||
# If the linter found any errors, it will exit with a non-zero code, which will cause the job to fail
|
||||
- name: Run AGLint
|
||||
run: npm run aglint
|
||||
|
||||
Reference in New Issue
Block a user