Limit CI linting to changed source files
All checks were successful
Verify and publish container / build-and-push (push) Successful in 1m10s
All checks were successful
Verify and publish container / build-and-push (push) Successful in 1m10s
This commit is contained in:
parent
e8dffc9692
commit
7bd0a9aad4
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
- name: Lint changed source files
|
||||
run: |
|
||||
if BASE=$(git rev-parse HEAD^ 2>/dev/null); then
|
||||
git diff --name-only -z "$BASE" HEAD -- '*.ts' '*.tsx' '*.js' '*.mjs' |
|
||||
git diff --name-only --diff-filter=ACMR -z "$BASE" HEAD -- '*.ts' '*.tsx' '*.js' '*.mjs' |
|
||||
xargs -0 -r npx eslint
|
||||
else
|
||||
git ls-files -z -- '*.ts' '*.tsx' '*.js' '*.mjs' |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue