Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add Auth and Locker tests to lint workflows

Neeraj Gupta13beadf7df40
diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.yml
index 125857ecde..7f3fa53e33 100644
--- a/.github/workflows/auth-lint.yml
+++ b/.github/workflows/auth-lint.yml
@@ -83,4 +83,11 @@ jobs:
- run: flutter pub get --enforce-lockfile
- - run: flutter analyze --no-fatal-infos
+ - name: Generate auth localizations
+ run: flutter gen-l10n
+
+ - name: Analyze auth
+ run: flutter analyze --no-fatal-infos
+
+ - name: Test auth
+ run: flutter test
diff --git a/.github/workflows/locker-lint.yml b/.github/workflows/locker-lint.yml
index a357ce0755..0a3df4e44f 100644
--- a/.github/workflows/locker-lint.yml
+++ b/.github/workflows/locker-lint.yml
@@ -71,4 +71,11 @@ jobs:
- run: flutter pub get --enforce-lockfile
- - run: flutter analyze --no-fatal-infos
+ - name: Generate locker localizations
+ run: flutter gen-l10n
+
+ - name: Analyze locker
+ run: flutter analyze --no-fatal-infos
+
+ - name: Test locker
+ run: flutter test
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index 9056ba1900..57306d8428 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -1,4 +1,4 @@
-name: "Lint (mobile)"
+name: "Lint (photos)"
on:
# Run on every pull request (open or push to it) that changes the photos app,
@@ -20,7 +20,7 @@ permissions:
contents: read
jobs:
- mobile-lint:
+ photos-lint:
runs-on: ubuntu-latest
defaults:
run:
diff --git a/.github/workflows/mobile-packages-lint.yml b/.github/workflows/mobile-packages-lint.yml
index aa46a16d64..3792d060a4 100644
--- a/.github/workflows/mobile-packages-lint.yml
+++ b/.github/workflows/mobile-packages-lint.yml
@@ -385,10 +385,18 @@ jobs:
- name: Lint app - auth
if: needs.detect-changes.outputs.lint_auth == 'true'
- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos
+ run: |
+ flutter pub get --enforce-lockfile
+ flutter gen-l10n
+ flutter analyze --no-fatal-infos
+ flutter test
working-directory: mobile/apps/auth
- name: Lint app - locker
if: needs.detect-changes.outputs.lint_locker == 'true'
- run: flutter pub get --enforce-lockfile && flutter analyze --no-fatal-infos
+ run: |
+ flutter pub get --enforce-lockfile
+ flutter gen-l10n
+ flutter analyze --no-fatal-infos
+ flutter test
working-directory: mobile/apps/locker