name: Java CI

on:
  push:
    branches:
      - master

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Set up JDK 11
      uses: actions/setup-java@v1
      with:
        java-version: 11
    - name: Build with Maven
      run: mvn package --file pom.xml

name: Java CI

on:
  push:
    branches:
      - master

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: Get OpenJDK 11
      run: wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.4%2B11/OpenJDK11U-jdk_x64_linux_hotspot_11.0.4_11.tar.gz

    - name: Set up JDK 11
      uses: actions/setup-java@v1
      with:
        java-version: 11
        jdkFile: ./OpenJDK11U-jdk_x64_linux_hotspot_11.0.4_11.tar.gz

    - name: Build with Maven
      run: mvn package --file pom.xml -Pjs-test

Use OpenJDK from AdoptOpenJDK releases
Use OpenJDK from AdoptOpenJDK releases
