removing testing code and adding test to release pipeline just in case

This commit is contained in:
Joseph Flinn 2021-05-12 15:41:34 -07:00
parent 3da8759cc8
commit 0a39d631b0
2 changed files with 20 additions and 1 deletions

View File

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

View File

@ -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": {