name: JDK11 Build and Test

on: [ push, pull_request ]


jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Setup timezone
      uses: zcong1993/setup-timezone@f28e5fb1ca95077c81b67be53bcd1923de2175ed
      with:
        timezone: Europe/London
    - name: Set up JDK 11
      uses: actions/setup-java@v1
      with:
        java-version: 11
 # Step that does that actual cache save and restore
    - uses: actions/cache@v1
      with:
        path: ~/.m2/repository
        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          ${{ runner.os }}-maven-
    - name: Build with Maven
      run: mvn -T3 -B test --file pom.xml

name: JDK11 Build and Test

on: [ push, pull_request ]


jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Setup timezone
      uses: zcong1993/setup-timezone@f28e5fb1ca95077c81b67be53bcd1923de2175ed
      with:
        timezone: Europe/London
    - name: Set up JDK 11
      uses: actions/setup-java@v2
      with:
        distribution: adopt
        java-version: 11
 # Step that does that actual cache save and restore
    - uses: actions/cache@v1
      with:
        path: ~/.m2/repository
        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          ${{ runner.os }}-maven-
    - name: Build with Maven
      run: mvn -T3 -B test --file pom.xml

Update Github Actions setup-java to v2
Update Github Actions setup-java to v2
