Skip to content

GeneralSettingsFragment: Move to more appropriate sub-package #1256

GeneralSettingsFragment: Move to more appropriate sub-package

GeneralSettingsFragment: Move to more appropriate sub-package #1256

Workflow file for this run

name: Checks
on:
push:
# Allow running these checks only on the developing branches
branches:
- main
- develop
- releases/*
permissions:
# For generating attestations
id-token: write
attestations: write
# For Code Scanning
security-events: write
jobs:
unit-tests:
runs-on: ubuntu-latest
name: Unit tests
steps:
- uses: actions/checkout@v4
- name: Run unit tests
uses: ./.github/actions/build-gradle
with:
gradle-arguments: test testAggregatedReport --continue
transcrypt-cipher: ${{ secrets.TRANSCRYPT_CIPHER }}
transcrypt-password: ${{ secrets.TRANSCRYPT_PASSWORD }}
app-keystore-password: ${{ secrets.APP_KEYSTORE_PASSWORD }}
app-keystore-alias: ${{ secrets.APP_KEYSTORE_ALIAS }}
app-keystore-alias-password: ${{ secrets.APP_KEYSTORE_ALIAS_PASSWORD }}
upload-name: Unit test results
upload-path: ./**/build/reports/tests/
dependencies:
name: Check for dependency updates
runs-on: ubuntu-latest
permissions:
# For generating attestations
id-token: write
attestations: write
# For generating checks
checks: write
steps:
- uses: actions/checkout@v4
- name: Run dependencyUpdates task
uses: ./.github/actions/build-gradle
with:
gradle-arguments: dependencyUpdates
upload-name: dependency-updates
# Dependency update info is available at build/dependencyUpdates/report.<filetype>
upload-path: build/dependencyUpdates/
transcrypt-cipher: ${{ secrets.TRANSCRYPT_CIPHER }}
transcrypt-password: ${{ secrets.TRANSCRYPT_PASSWORD }}
app-keystore-password: ${{ secrets.APP_KEYSTORE_PASSWORD }}
app-keystore-alias: ${{ secrets.APP_KEYSTORE_ALIAS }}
app-keystore-alias-password: ${{ secrets.APP_KEYSTORE_ALIAS_PASSWORD }}
- name: Generate dependency updates summary
id: parse_dep_updates
run: |
report_file="build/dependencyUpdates/report.json"
dep_update_types=("current" "exceeded" "outdated" "unresolved" "undeclared")
dep_update_summary="Dependencies found:"
for dep in "${dep_update_types[@]}"
do
dep_update_summary+="\n- $(jq -r --arg dep "$dep" '.[$dep].count' $report_file) $dep dependencies"
done
echo "summary=$dep_update_summary" >> $GITHUB_OUTPUT
- name: Add job summary
run: |
printf "# Summary\n" >> $GITHUB_STEP_SUMMARY
printf "${{ steps.parse_dep_updates.outputs.summary }}" >> $GITHUB_STEP_SUMMARY
printf "\n---\n" >> $GITHUB_STEP_SUMMARY
printf "$(cat build/dependencyUpdates/report.md)" >> $GITHUB_STEP_SUMMARY
- name: Add GitHub check to commit
uses: LouisBrunner/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Dependency updates report
conclusion: ${{ job.status }}
output: |
{"summary": "${{ steps.parse_dep_updates.outputs.summary }}"}
output_text_description_file: build/dependencyUpdates/report.md
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run lint task
uses: ./.github/actions/build-gradle
with:
gradle-arguments: :app:lint
upload-name: lint-output
# See https://googlesamples.github.io/android-custom-lint-rules/usage/agp-dsl.md.html
# on where lint reports are outputted
upload-path: app/build/reports/
transcrypt-cipher: ${{ secrets.TRANSCRYPT_CIPHER }}
transcrypt-password: ${{ secrets.TRANSCRYPT_PASSWORD }}
app-keystore-password: ${{ secrets.APP_KEYSTORE_PASSWORD }}
app-keystore-alias: ${{ secrets.APP_KEYSTORE_ALIAS }}
app-keystore-alias-password: ${{ secrets.APP_KEYSTORE_ALIAS_PASSWORD }}
- name: Upload lint report
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: app/build/reports/lint-results-debug.sarif
health:
name: Build Health
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run buildHealth task
uses: ./.github/actions/build-gradle
with:
gradle-arguments: :buildHealth
upload-name: build-health
upload-path: build/reports/dependency-analysis
transcrypt-cipher: ${{ secrets.TRANSCRYPT_CIPHER }}
transcrypt-password: ${{ secrets.TRANSCRYPT_PASSWORD }}
app-keystore-password: ${{ secrets.APP_KEYSTORE_PASSWORD }}
app-keystore-alias: ${{ secrets.APP_KEYSTORE_ALIAS }}
app-keystore-alias-password: ${{ secrets.APP_KEYSTORE_ALIAS_PASSWORD }}
- name: Add job summary
run: |
echo "# Build health report" >> $GITHUB_STEP_SUMMARY
cat build/reports/dependency-analysis/build-health-report.txt >> $GITHUB_STEP_SUMMARY