Accessibility toast message #63
Workflow file for this run
This file contains 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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test_and_apk: | |
name: "Local tests and APKs" | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/gradle-ci.properties ~/.gradle/gradle.properties | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
cache-encryption-key: ${{ secrets.GradleEncryptionKey }} | |
- name: Check build-logic | |
run: ./gradlew :buildLogic:convention:check | |
- name: Check spotless | |
run: ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache | |
# Run local tests | |
- name: Run local tests | |
run: ./gradlew testDevDebug | |
- name: Build all build type and flavor permutations | |
run: ./gradlew :app:assemble | |
- name: Upload build outputs (APKs) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: APKs | |
path: '**/build/outputs/apk/**/*.apk' | |
- name: Upload JVM local results (XML) | |
if: ${{ !cancelled() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: local-test-results | |
path: '**/build/test-results/test*UnitTest/**.xml' | |
- name: Check lint | |
run: ./gradlew :app:lintProdRelease | |
- name: Upload lint reports (HTML) | |
if: ${{ !cancelled() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lint-reports | |
path: '**/build/reports/lint-results-*.html' | |
- name: Upload lint reports (SARIF) | |
if: ${{ !cancelled() && hashFiles('**/*.sarif') != '' }} | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: './' |