name: Build Test

on:
  push:
    branches: [ master, build-test ]
  pull_request:
    branches: [ master ]

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Set up JDK
        uses: actions/setup-java@v3
        with:
          distribution: 'adopt'
          java-version: 8

      - uses: burrunan/gradle-cache-action@v1
        name: Build with Gradle
        env:
          TERM: dumb
        with:
          arguments: clean build dist copyExe --warning-mode=all
