Skip to content

Merge pull request #44 from SimonMarquis/dependabot/github_actions/ac… #86

Merge pull request #44 from SimonMarquis/dependabot/github_actions/ac…

Merge pull request #44 from SimonMarquis/dependabot/github_actions/ac… #86

Workflow file for this run

name: Android CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build & Tests & Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1.1.0
- uses: gradle/gradle-build-action@8cbcb9948b5892387aed077daf6f90e1f0ba5b27 # v2.11.0
with:
arguments: assembleDebug test lint --stacktrace
gradle-home-cache-cleanup: true
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app-debug.apk
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload UnitTest reports
uses: actions/upload-artifact@v4
with:
name: unit-tests-reports
path: |
**/reports/tests/test*UnitTest/
**/build/test-results/Test-*.xml
- name: Upload Lint reports
uses: actions/upload-artifact@v4
with:
name: lint-reports
path: |
**/reports/lint-results-*.xml
**/reports/lint-results-*.html