# Triggers builds on PRs to master branch
# Supported operating systems: ubuntu-latest, windows-latest, macOS-latest
# Supported jdk versions: 1.8
name: PR Build JDK 1.8
on:
   pull_request:
      branches:
         - master
jobs:
  build:
    name: Build on ${{matrix.os}}
    runs-on: ${{matrix.os}}
    strategy:
      fail-fast: false
      matrix:
         os: [ubuntu-latest, windows-latest, macOS-latest]
    steps:
    - name: Allow longpaths
      run: git config --system core.longpaths true
      if: contains(matrix.os, 'windows')
    - uses: actions/checkout@v1
      with:
        ref: master
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build with Maven
      run: mvn clean install

# Triggers builds on PRs to master branch
# Supported operating systems: ubuntu-latest, windows-latest, macOS-latest
# Supported jdk versions: 1.8
name: PR Build JDK 1.8
on:
   pull_request:
      branches:
         - master
jobs:
  build:
    name: Build on ${{matrix.os}}
    runs-on: ${{matrix.os}}
    strategy:
      fail-fast: false
      matrix:
         os: [ubuntu-latest, windows-latest, macOS-latest]
    steps:
    - name: Allow longpaths
      run: git config --system core.longpaths true
      if: contains(matrix.os, 'windows')
    - uses: actions/checkout@v1
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build with Maven
      run: mvn clean install

Update PR built to fetch the PR before build
Update PR built to fetch the PR before build
