Compare commits

...

9 commits

Author SHA1 Message Date
EncodedVenom
6755161300
Merge acc6e40aed into d9be40d2ca 2024-12-05 00:36:39 +01:00
EncodedVenom
acc6e40aed Simplify script maybe? 2024-10-19 20:04:29 -04:00
EncodedVenom
9878df20ba Use bash entirely 2024-10-19 20:02:05 -04:00
EncodedVenom
b365fc8c1c Parenthesis 2024-10-19 19:58:09 -04:00
EncodedVenom
a8004011cc change to file 2024-10-19 19:55:54 -04:00
EncodedVenom
c697030ec4 debug 2024-10-19 19:53:43 -04:00
EncodedVenom
fefbd19b38 get around permissions 2024-10-19 19:52:21 -04:00
EncodedVenom
d5dc64be1b change location 2024-10-19 19:49:13 -04:00
EncodedVenom
04ef154193 Unit testing init PR 2024-10-19 19:47:26 -04:00
2 changed files with 15 additions and 1 deletions

View file

@ -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

View 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"