mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Add newline workflow (#1002)
This commit is contained in:
parent
12ae664caa
commit
ebed7baa95
2
.github/workflows/latest.yml
vendored
2
.github/workflows/latest.yml
vendored
@ -35,4 +35,4 @@ jobs:
|
||||
run: |
|
||||
cd /mnt/HDD/public/.EmulatorJS/
|
||||
rm -f "minify/package-lock.json"
|
||||
rm -rf "minify/node_modules/"
|
||||
rm -rf "minify/node_modules/"
|
||||
|
||||
42
.github/workflows/newlines.yml
vendored
Normal file
42
.github/workflows/newlines.yml
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
name: Check for Newline at End of Files
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
jobs:
|
||||
check-newlines:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Check for missing newlines
|
||||
run: |
|
||||
files=$(git ls-files)
|
||||
|
||||
newline_error=0
|
||||
|
||||
for file in $files; do
|
||||
if file --mime "$file" | grep -q "binary"; then
|
||||
#echo "Skipping binary file: $file"
|
||||
continue
|
||||
fi
|
||||
|
||||
last_char=$(tail -c 1 "$file" | xxd -p)
|
||||
if [[ "$last_char" != "0a" ]]; then
|
||||
echo "File $file does not end with a newline!"
|
||||
newline_error=1
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ $newline_error -eq 1 ]]; then
|
||||
echo "One or more files do not end with a newline."
|
||||
exit 1
|
||||
else
|
||||
echo "All files end with a newline."
|
||||
fi
|
||||
@ -62,4 +62,4 @@
|
||||
"@emulatorjs/core-prboom": "latest",
|
||||
"@emulatorjs/core-ppsspp": "latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -298,4 +298,4 @@
|
||||
"DPAD_DOWN": "DPAD_DOWN",
|
||||
"DPAD_LEFT": "DPAD_LEFT",
|
||||
"DPAD_RIGHT": "DPAD_RIGHT"
|
||||
}
|
||||
}
|
||||
|
||||
@ -298,4 +298,4 @@
|
||||
"DPAD_DOWN": "DPAD_DOWN",
|
||||
"DPAD_LEFT": "DPAD_LEFT",
|
||||
"DPAD_RIGHT": "DPAD_RIGHT"
|
||||
}
|
||||
}
|
||||
|
||||
@ -298,4 +298,4 @@
|
||||
"DPAD_DOWN": "DPAD_DOWN",
|
||||
"DPAD_LEFT": "DPAD_LEFT",
|
||||
"DPAD_RIGHT": "DPAD_RIGHT"
|
||||
}
|
||||
}
|
||||
|
||||
@ -307,4 +307,4 @@
|
||||
"DPAD_DOWN": "DPAD_ABAJO",
|
||||
"DPAD_LEFT": "DPAD_IZQUIERDA",
|
||||
"DPAD_RIGHT": "DPAD_DERECHO"
|
||||
}
|
||||
}
|
||||
|
||||
@ -298,4 +298,4 @@
|
||||
"DPAD_DOWN": "डीपीएडी_डाउन",
|
||||
"DPAD_LEFT": "DPAD_LEFT",
|
||||
"DPAD_RIGHT": "डीपीएडी_दाएँ"
|
||||
}
|
||||
}
|
||||
|
||||
@ -298,4 +298,4 @@
|
||||
"DPAD_DOWN": "DPAD_DOWN",
|
||||
"DPAD_LEFT": "DPAD_LEFT",
|
||||
"DPAD_RIGHT": "DPAD_RIGHT"
|
||||
}
|
||||
}
|
||||
|
||||
@ -298,4 +298,4 @@
|
||||
"DPAD_DOWN": "DPAD_DOWN",
|
||||
"DPAD_LEFT": "DPAD_LEFT",
|
||||
"DPAD_RIGHT": "DPAD_RIGHT"
|
||||
}
|
||||
}
|
||||
|
||||
@ -298,4 +298,4 @@
|
||||
"DPAD_DOWN": "DPAD_ВНИЗ",
|
||||
"DPAD_LEFT": "DPAD_ВЛЕВО",
|
||||
"DPAD_RIGHT": "DPAD_СПРАВО"
|
||||
}
|
||||
}
|
||||
|
||||
@ -298,4 +298,4 @@
|
||||
"DPAD_DOWN": "十字键向下",
|
||||
"DPAD_LEFT": "十字键向左",
|
||||
"DPAD_RIGHT": "十字键向右"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -4484,4 +4484,4 @@ M 453.00 474.00
|
||||
C 452.61 472.13 453.87 469.14 452.00 468.00
|
||||
C 452.39 469.87 451.13 472.86 453.00 474.00 Z"/>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 170 KiB |
Loading…
Reference in New Issue
Block a user