name: Android CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
      - name: Add write permisions to sdk
        run: sudo chmod -R a+w /usr/local/lib/android/sdk
      - name: Add write permisions to gradle
        run: sudo chmod +x gradlew
      - name: Unit tests
        run: ./gradlew test --stacktrace

Create git actions to check build and run tests
Create git actions to check build and run tests