1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 05:43:41 +00:00

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