mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
removing testing code and adding test to release pipeline just in case
This commit is contained in:
parent
3da8759cc8
commit
0a39d631b0
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -90,6 +90,25 @@ jobs:
|
||||
npm run dist
|
||||
npm run test
|
||||
|
||||
- name: Testing locale lengths
|
||||
run: |
|
||||
errors=0
|
||||
echo "Testing locales extName lengths"
|
||||
echo "All must be 40 or less for Safari"
|
||||
echo "================================="
|
||||
for file in $(ls src/_locales/);
|
||||
do
|
||||
test_string=$(cat src/_locales/$file/messages.json | jq .extName.message | tr -d '"')
|
||||
if [[ ${#test_string} -gt 40 ]]; then
|
||||
echo $file: ${#test_string}
|
||||
errors=1
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ $errors -eq 1 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: gulp
|
||||
run: gulp ci
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
"message": "Bitwarden"
|
||||
},
|
||||
"extName": {
|
||||
"message": "Bitwarden - Free Password Manager (longer than 40 characters for a test)",
|
||||
"message": "Bitwarden - Free Password Manager",
|
||||
"description": "Extension name, MUST be less than 40 characters (Safari restriction)"
|
||||
},
|
||||
"extDesc": {
|
||||
|
Loading…
Reference in New Issue
Block a user