Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[auth] Lint on file size

Neeraj Gupta747bf885158d
diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.yml
index 575a5e6dc3..2deaa285f7 100644
--- a/.github/workflows/auth-lint.yml
+++ b/.github/workflows/auth-lint.yml
@@ -30,6 +30,18 @@ jobs:
exit 1
fi
done
+
+ - name: Verify all icons are less than 20KB
+ run: |
+ find assets/custom-icons -type f -name "*.svg" | while read -r file; do
+ if [[ "$file" == "assets/custom-icons/icons/bbs_nga.svg" ]]; then
+ continue
+ fi
+ if [[ "$(stat --printf="%s" "$file")" -gt 20480 ]]; then
+ echo "File size is greater than 20KB: $file ($file_size bytes)"
+ exit 1
+ fi
+ done
- name: Verify custom icon JSON
run: cat assets/custom-icons/_data/custom-icons.json | jq empty