mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Merge acc6e40aed
into c8884c8eac
This commit is contained in:
commit
7f37a478a8
2 changed files with 15 additions and 1 deletions
3
.github/workflows/analysis.yaml
vendored
3
.github/workflows/analysis.yaml
vendored
|
@ -16,4 +16,5 @@ jobs:
|
|||
|
||||
- name: Analyze
|
||||
run: |
|
||||
output=$(luau-analyze src || true) # Suppress errors for now.
|
||||
(luau-analyze src || true) > analyze-log.txt # Suppress errors for now.
|
||||
bash ./scripts/gh-warn-luau-analyze.sh analyze-log.txt
|
||||
|
|
13
scripts/gh-warn-luau-analyze.sh
Normal file
13
scripts/gh-warn-luau-analyze.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Read the input file line by line
|
||||
while IFS= read -r line; do
|
||||
# Use regex to capture file name, line number, column number, and message
|
||||
if [[ $line =~ ^(.+)\(([0-9]+),([0-9]+)\):\ (.+)$ ]]; then
|
||||
file="${BASH_REMATCH[1]}"
|
||||
line_number="${BASH_REMATCH[2]}"
|
||||
column_number="${BASH_REMATCH[3]}"
|
||||
message="${BASH_REMATCH[4]}"
|
||||
|
||||
# Format output for GitHub Actions
|
||||
echo "::warning file=$file,line=$line_number,col=$column_number::${message}"
|
||||
fi
|
||||
done < "$1"
|
Loading…
Reference in a new issue