feat: add quick filter chips, biometric app lock, tactile haptics, an… #3
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: DevSecOps CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| secret-scan: | |
| name: Secret & Credential Scanning (Gitleaks) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Gitleaks Secret Scanner | |
| uses: gitleaks/gitleaks-action@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| code-quality-and-test: | |
| name: Build, Unit Test & SAST | |
| runs-on: ubuntu-latest | |
| needs: [secret-scan] | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-version: wrapper | |
| - name: Grant Execute Permission to Gradlew | |
| run: chmod +x gradlew | |
| - name: Run Static Code Analysis (Android Lint) | |
| run: ./gradlew lintDebug --stacktrace | |
| - name: Upload Lint Report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: android-lint-report | |
| path: app/build/reports/lint-results-debug.html | |
| if-no-files-found: ignore | |
| - name: Run Unit Tests | |
| run: ./gradlew testDebugUnitTest --stacktrace | |
| - name: Upload Unit Test Results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: unit-test-results | |
| path: app/build/reports/tests/testDebugUnitTest/ | |
| if-no-files-found: ignore | |
| - name: Build Debug APK | |
| run: ./gradlew assembleDebug --stacktrace | |
| - name: Upload Debug APK Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: NotifPlus-debug-apk | |
| path: app/build/outputs/apk/debug/*.apk | |
| if-no-files-found: warn |