Prepare release 17.2.0 (26) #42
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: Android CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build and Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Gradle Info | |
run: ./gradlew -version | |
- name: Assemble Debug | |
run: ./gradlew assembleDebug | |
- name: Unit Tests | |
run: ./gradlew :dtareader:test | |
# To speed up lint check only run for release variant. | |
- name: Lint Release | |
run: ./gradlew :app:lintRelease | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} # Also upload if lint errors. | |
with: | |
name: Lint reports | |
path: | | |
app/build/reports/lint-results-release.html |