Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Improve mobile linter workflows for better UI visibility

Neeraj Gupta7214c7b836a0
diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.yml
index 39830b458d..df54a52038 100644
--- a/.github/workflows/auth-lint.yml
+++ b/.github/workflows/auth-lint.yml
@@ -5,6 +5,7 @@ on:
pull_request:
paths:
- "mobile/apps/auth/**"
+ - "mobile/packages/**"
- ".github/workflows/auth-lint.yml"
env:
@@ -14,7 +15,7 @@ permissions:
contents: read
jobs:
- lint:
+ auth-lint:
runs-on: ubuntu-latest
defaults:
run:
diff --git a/.github/workflows/locker-lint.yml b/.github/workflows/locker-lint.yml
new file mode 100644
index 0000000000..2861d1e2ba
--- /dev/null
+++ b/.github/workflows/locker-lint.yml
@@ -0,0 +1,42 @@
+name: "Lint (locker)"
+
+on:
+ # Run on every pull request (open or push to it) that changes locker/
+ pull_request:
+ paths:
+ - "mobile/apps/locker/**"
+ - "mobile/packages/**"
+ - ".github/workflows/locker-lint.yml"
+
+env:
+ FLUTTER_VERSION: "3.32.8"
+
+permissions:
+ contents: read
+
+jobs:
+ locker-lint:
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: mobile/apps/locker
+ steps:
+ - name: Checkout code and submodules
+ uses: actions/checkout@v4
+ with:
+ submodules: recursive
+
+ - name: Install Flutter ${{ env.FLUTTER_VERSION }}
+ uses: subosito/flutter-action@v2
+ with:
+ channel: "stable"
+ flutter-version: ${{ env.FLUTTER_VERSION }}
+ cache: true
+
+ - name: Generate strings localizations
+ run: flutter gen-l10n
+ working-directory: mobile/packages/strings
+
+ - run: flutter pub get
+
+ - run: flutter analyze --no-fatal-infos
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index 9d07f57f1a..4651f0ec52 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -5,7 +5,7 @@ on:
pull_request:
paths:
- "mobile/apps/photos/**"
- - "mobile/packages/rust/**"
+ - "mobile/packages/**"
- "rust/core/**"
- ".github/workflows/mobile-lint.yml"
@@ -17,7 +17,7 @@ permissions:
contents: read
jobs:
- lint:
+ mobile-lint:
runs-on: ubuntu-latest
defaults:
run: