Repository navigation
Refactor: use setting localization use cases #52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Localization Validation | |
| on: | |
| push: | |
| branches: | |
| - feature/firebase-remote-localization | |
| workflow_dispatch: | |
| concurrency: | |
| group: localization-validation | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: '21' | |
| - name: Make Gradle wrapper executable | |
| run: chmod +x gradlew | |
| - name: Verify Compose string migration | |
| shell: bash | |
| run: | | |
| if grep -R --line-number --include='*.kt' 'Res\.string' app core data domain infrastructure model ui; then | |
| echo 'Found remaining Compose Res.string usage.' | |
| exit 1 | |
| fi | |
| if grep -R --line-number --include='*.kt' 'org\.jetbrains\.compose\.resources\.stringResource' app core data domain infrastructure model ui; then | |
| echo 'Found remaining JetBrains Compose stringResource import.' | |
| exit 1 | |
| fi | |
| - name: Validate localization publishing script | |
| shell: pwsh | |
| run: ./scripts/firebase/publish-localization.ps1 -ValidateOnly | |
| - name: Compile and test localization | |
| run: >- | |
| ./gradlew | |
| :core:core-resource:desktopTest | |
| :data:firebase:desktopTest | |
| :infrastructure:di:desktopTest | |
| :app:desktop:compileKotlinDesktop | |
| :app:android:compileDevelopDebugKotlin | |
| -x :app:android:processDevelopDebugGoogleServices | |
| --stacktrace | |
| - name: Compile QA Firebase mapping | |
| run: >- | |
| ./gradlew | |
| :app:android:compileQaDebugKotlin | |
| -x :app:android:processQaDebugGoogleServices | |
| --stacktrace |