This action seems to print invalid warnings about malformed syntax_test files being present.
Example:
Syntax Tests (latest, master): ./Package/Property#L0
Syntax test filenames must begin with 'syntax_test_'
see: https://github.com/SublimeText/PackageDev/actions/runs/24145702504
Likely causing code:
|
echo "::group::Checking syntax test filenames" |
|
for path in $(find . -iname syntax_test*); do |
|
file="${path/$packages\/$INPUT_PACKAGE_NAME/$INPUT_PACKAGE_ROOT}" |
|
if echo "$file" | grep -v '/syntax_test_'; then |
|
echo "::warning file=$file::Syntax test filenames must begin with 'syntax_test_'" |
|
fi |
|
if head -n 1 "$path" | grep -vEq '.+\bSYNTAX TEST\b.+".+\.(sublime-syntax|tmLanguage)"'; then |
|
echo "::warning file=$file::Syntax test file format at https://www.sublimetext.com/docs/syntax.html#testing" |
|
fi |
|
done |
|
echo '::endgroup::' |
This action seems to print invalid warnings about malformed
syntax_testfiles being present.Example:
see: https://github.com/SublimeText/PackageDev/actions/runs/24145702504
Likely causing code:
syntax-test-action/syntax-tests.sh
Lines 141 to 151 in 20adb50