Merge pull request #28 from brandy-kay/develop #58
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 Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: 🔨 Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Make gradle executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build --stacktrace | |
- name: Run Tests | |
run: ./gradlew test | |
- name: Upload a Build Artifact (APK) | |
uses: actions/[email protected] | |
with: | |
name: app | |
path: app/build/outputs/apk/debug/app-debug.apk |