40 lines
802 B
YAML
40 lines
802 B
YAML
name: Build
|
|
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 11
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
- name: Build project and run local tests
|
|
run: ./gradlew assembleDebug jacocoDebugReport --stacktrace
|
|
|
|
- name: Upload build outputs (APKs)
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: build-outputs
|
|
path: ./app/build/outputs
|
|
|
|
- name: Upload test report
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: report
|
|
path: ./build/jacoco
|