Update dependency androidx.annotation:annotation to v1.9.1 (#10) #31
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: | |
- updated-version | |
paths-ignore: | |
- 'README.md' | |
- 'TEST_CASE.md' | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- 'TEST_CASE.md' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Grant execute permission for Gradle wrapper | |
run: chmod +x gradlew | |
- name: Inject MAPS_API_KEY into local.properties | |
run: echo "MAPS_API_KEY=${{ secrets.MAPS_API_KEY }}" >> local.properties | |
- name: Run unit tests | |
run: ./gradlew test --stacktrace --info | |
- name: Upload test reports | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-reports | |
path: app/build/reports/tests/testDebugUnitTest/ | |
- name: Build with Gradle Wrapper | |
run: ./gradlew assembleDebug --stacktrace |