Skip to content

Commit

Permalink
Lint and spell only changed files to limit wast of resources. (#586)
Browse files Browse the repository at this point in the history
Lint and spell only changed files to limit wast of resources..

The codebase should already be in a sane situation, lint and spell
checks have been running across all the codebase.
  • Loading branch information
gwarf authored Mar 8, 2023
1 parent 67eae32 commit 028695d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: Check links

on: [pull_request]
on:
pull_request:

jobs:
markdown-link-check:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: Lint

on: [pull_request]
on:
pull_request:

jobs:
super-lint:
Expand All @@ -27,8 +28,8 @@ jobs:
MARKDOWN_CONFIG_FILE: .markdownlint.json
# XXX gitleaks is currently not using exception file: #511
VALIDATE_GITLEAKS: false
# Always check all the content
VALIDATE_ALL_CODEBASE: true
# Only check changed files
VALIDATE_ALL_CODEBASE: false
# Debug super-linter
ACTIONS_RUNNER_DEBUG: false
# Fail on errors
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ jobs:
concurrency:
group: spelling-${{ github.event.pull_request.number || github.ref }}
# note: If you use only_check_changed_files, you do not want cancel-in-progress
cancel-in-progress: true
cancel-in-progress: false
steps:
- name: check-spelling
id: spelling
uses: check-spelling/check-spelling@main
with:
suppress_push_for_open_pull_request: 1
checkout: true
only_check_changed_files: 1
check_file_names: 1
spell_check_this: check-spelling/spell-check-this@prerelease
post_comment: 0
Expand Down

0 comments on commit 028695d

Please sign in to comment.