name: Test

on:
  push:
  pull_request:
    branches:
      - main
      - master
      - develop
      - dependabot
  workflow_dispatch:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK 8
        uses: actions/setup-java@v2
        with:
          distribution: 'adopt'
          java-version: '8'
      - name: Where is Java
        run: which java
      - name: Grant execute permission for gradlew
        run: chmod +x gradlew
      - name: Build with Gradle
        run: ./gradlew about build --no-daemon --info
      - name: List files in libs
        run: ls -ahl build/libs