mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add pre-commit hook actionlint
Validate GitHub Actions with pre-commit. Remove the Super-Linter GitHub Actions check. It is more useful to run "actionlint" with pre-commit since the hooks run on our local machines on git commit. We also run pre-commit on GitHub. Whereas the Super-Linter tests only run on GitHub. https://github.com/rhysd/actionlint/blob/main/docs/usage.md#pre-commit
This commit is contained in:
@@ -26,7 +26,6 @@ jobs:
|
||||
# VALIDATE_BASH_EXEC: true
|
||||
VALIDATE_DOCKERFILE_HADOLINT: true
|
||||
# VALIDATE_EDITORCONFIG: true
|
||||
VALIDATE_GITHUB_ACTIONS: true
|
||||
VALIDATE_GITLEAKS: true
|
||||
# VALIDATE_SHELL_SHFMT: true
|
||||
DEFAULT_BRANCH: master
|
||||
|
||||
@@ -41,6 +41,10 @@ repos:
|
||||
- id: remove-tabs
|
||||
args: [--whitespaces-count, "2"]
|
||||
exclude: Makefile$
|
||||
- repo: https://github.com/rhysd/actionlint
|
||||
rev: v1.7.1
|
||||
hooks:
|
||||
- id: actionlint
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.3.0
|
||||
hooks:
|
||||
|
||||
Reference in New Issue
Block a user