GitHub Actions for Android: First Approach

Photo by Ant Rozetsky on Unsplash

- So what the GitHub Actions really is?

- So finally, the last question before moving to the example. How to get it?

But what they mean?

name: Android Feature Branch CI
on:
push:
branches:
- '*'
- '!master'
- '!release*'
jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-18.04
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Unit tests
run: bash ./gradlew test --stacktrace
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
apk:
name: Generate APK
runs-on: ubuntu-18.04
- name: Build debug APK
run: bash ./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v1
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store