Implement content picker and grid layout for media #657
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: Detekt Analysis | |
| on: | |
| # Triggers on push to key branches | |
| # push: | |
| # branches: #[ "master", "stable", "next", "feature/major-refactor-ui-changes" ] | |
| # - '**' # Triggers on pull requests to any branch | |
| pull_request: | |
| branches: | |
| - '**' # Triggers on pull requests to any branch | |
| schedule: # Scheduled weekly scan | |
| - cron: '35 5 * * 0' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| detekt: | |
| name: Static Code Analysis with Detekt | |
| runs-on: ubuntu-latest | |
| steps: | |
| # ✅ Step 1: Checkout Repository | |
| - name: Check out code | |
| uses: actions/checkout@v5 | |
| # ✅ Step 2: Set up Java 17 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| # ✅ Step 3: Install Ruby and Bundler (Required for Fastlane) | |
| - name: Install Ruby and Bundler | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| bundler-cache: true | |
| - name: Create local.properties file | |
| run: | | |
| echo "MIXPANEL_KEY=${{ secrets.MIXPANEL_KEY }}" >> local.properties | |
| echo "STOREFILE=${{ secrets.STOREFILE }}" >> local.properties | |
| echo "STOREPASSWORD=${{ secrets.STOREPASSWORD }}" >> local.properties | |
| echo "KEYALIAS=${{ secrets.KEYALIAS }}" >> local.properties | |
| echo "KEYPASSWORD=${{ secrets.KEYPASSWORD }}" >> local.properties | |
| # ✅ Step 4: Install Fastlane Dependencies | |
| - name: Install Fastlane dependencies | |
| run: | | |
| bundle config path vendor/bundle | |
| bundle install --jobs 4 --retry 3 | |
| # ✅ Step 5: Run Detekt via Fastlane | |
| - name: Run Detekt | |
| run: | | |
| bundle exec fastlane detekt | |
| # ✅ Step 6: Upload SARIF report for GitHub Security Code Scanning | |
| - name: Upload SARIF report for GitHub Code Scanning | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: "app/build/reports/detekt/detekt.sarif" | |
| category: detekt-analysis | |
| # ✅ Step 7: Upload Detekt Reports as Artifacts for Download | |
| - name: Upload Detekt Reports as Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: detekt-reports | |
| path: | | |
| */build/reports/detekt/*.html | |
| */build/reports/detekt/*.md | |
| */build/reports/detekt/*.xml |