mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
GitHub Actions: Add codespell problem matcher (#37487)
* GitHub Actions: Add codespell problem matcher * Add some spelling issues for test * Disable color, might throw off matcher * Revert "Add some spelling issues for test" This reverts commit 3afb59c8d9c4080621fc90d25d228fa308b80a4b.
This commit is contained in:
parent
c630037f04
commit
83b41897f8
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@ -195,10 +195,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Failed to restore Python virtual environment from cache"
|
echo "Failed to restore Python virtual environment from cache"
|
||||||
exit 1
|
exit 1
|
||||||
|
- name: Register codespell problem matcher
|
||||||
|
run: |
|
||||||
|
echo "::add-matcher::.github/workflows/matchers/codespell.json"
|
||||||
- name: Run codespell
|
- name: Run codespell
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pre-commit run --show-diff-on-failure --color=always --hook-stage manual codespell --all-files
|
pre-commit run --show-diff-on-failure --hook-stage manual codespell --all-files
|
||||||
|
|
||||||
lint-dockerfile:
|
lint-dockerfile:
|
||||||
name: Check Dockerfile
|
name: Check Dockerfile
|
||||||
|
16
.github/workflows/matchers/codespell.json
vendored
Normal file
16
.github/workflows/matchers/codespell.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"owner": "codespell",
|
||||||
|
"severity": "warning",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "^(.+):(\\d+):\\s(.+)$",
|
||||||
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"message": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user