mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Testing warning labels
This commit is contained in:
parent
b1bc689cbd
commit
4c9c1a50ce
1 changed files with 11 additions and 1 deletions
12
.github/workflows/analysis.yaml
vendored
12
.github/workflows/analysis.yaml
vendored
|
@ -17,4 +17,14 @@ jobs:
|
|||
- name: Analyze
|
||||
continue-on-error: true
|
||||
run: |
|
||||
luau-analyze src
|
||||
output=$(luau-analyze src)
|
||||
|
||||
# Parse the output and generate GitHub Actions warnings
|
||||
echo "$output" | while IFS= read -r line; do
|
||||
if [[ $line =~ (.+)\(([0-9]+),([0-9]+)\):\ (.*) ]]; then
|
||||
file="${BASH_REMATCH[1]}"
|
||||
line_number="${BASH_REMATCH[2]}"
|
||||
message="${BASH_REMATCH[4]#TypeError: }"
|
||||
echo "::warning file=$file,line=$line_number,col=0::$message"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue