mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-29 12:55:21 +01:00
Update locales test in build workflow
This commit is contained in:
parent
cb07bc2300
commit
1c3db8e18e
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
@ -50,19 +50,27 @@ jobs:
|
|||||||
|
|
||||||
- name: Testing locales - extName length
|
- name: Testing locales - extName length
|
||||||
run: |
|
run: |
|
||||||
exit_status=0
|
found_error=false
|
||||||
|
|
||||||
echo "extName string must be 40 characters or less"
|
echo "Locales Test"
|
||||||
echo "===================================="
|
echo "============"
|
||||||
for locale in $(ls src/_locales/); do
|
echo "extName string must be 40 characters or less"
|
||||||
string_length=$(jq '.extName.message | length' src/_locales/$locale/messages.json)
|
echo
|
||||||
if [[ $string_length -gt 40 ]]; then
|
for locale in $(ls src/_locales/); do
|
||||||
echo $locale: $string_length
|
string_length=$(jq '.extName.message | length' src/_locales/$locale/messages.json)
|
||||||
exit_status=1
|
if [[ $string_length -gt 40 ]]; then
|
||||||
fi
|
echo "$locale: $string_length"
|
||||||
done
|
found_error=true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
exit $exit_status
|
if $found_error; then
|
||||||
|
echo
|
||||||
|
echo "Please fix 'extName' for the locales listed above."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Test passed!"
|
||||||
|
fi
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user