Skip to content

armgit / ente

Public Imported from GitHub
0

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

[auth] Add Lint validation for custom icon name

Neeraj Gupta71fcce5f0120
diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.yml
index bad2539c30..53d5047113 100644
--- a/.github/workflows/auth-lint.yml
+++ b/.github/workflows/auth-lint.yml
@@ -33,5 +33,15 @@ jobs:
- run: flutter analyze --no-fatal-infos
+ - name: Verify custom icons are lowercase including optional understores, and end with .svg
+ run: |
+ find assets/custom-icons -type f -name "*.svg" | while read -r file; do
+ if [[ "$(basename "$file")" != "$(basename "$file" | tr '[:upper:]' '[:lower:]' | tr ' ' '_')" ]]; then
+ echo "File name is not lowercase: $file"
+ exit 1
+ fi
+ done
+
+
- name: Verify custom icon JSON
run: cat assets/custom-icons/_data/custom-icons.json | jq empty