mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
GitHub Actions: Add check executables problem matcher (#37488)
* GitHub Actions: Add check executables problem matcher * Create a problem for testing * Revert "Create a problem for testing" This reverts commit 3532b3777f0100316b154d334b513fe4cd62ce25.
This commit is contained in:
parent
c6ed7754c7
commit
fa6bd786d2
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@ -261,6 +261,9 @@ jobs:
|
||||
run: |
|
||||
echo "Failed to restore Python virtual environment from cache"
|
||||
exit 1
|
||||
- name: Register check executables problem matcher
|
||||
run: |
|
||||
echo "::add-matcher::.github/workflows/matchers/check-executables-have-shebangs.json"
|
||||
- name: Run executables check
|
||||
run: |
|
||||
. venv/bin/activate
|
||||
|
14
.github/workflows/matchers/check-executables-have-shebangs.json
vendored
Normal file
14
.github/workflows/matchers/check-executables-have-shebangs.json
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "check-executables-have-shebangs",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^(.+):\\s(.+)$",
|
||||
"file": 1,
|
||||
"message": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user