name: Java CI
on:
  pull_request:
    branches:
    - 4.1-maintenance
    - 4.1-development
    - 5.0-development
  push:
    branches:
    - 4.1-maintenance
    - 4.1-development
    - 5.0-development
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        java_version: [8, 11]
        os:
        - ubuntu-latest
    env:
      JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java_version }}
    - uses: actions/cache@v1
      with:
        path: ~/.m2/repository
        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          ${{ runner.os }}-maven-
    - name: Print Java and Maven versions
      run: ./mvnw -B -ff -s .github/settings.xml -v
    - name: Build with Maven
      run: ./mvnw -B -ff -s .github/settings.xml install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
    - name: Run tests
      run: ./mvnw -B -ff -s .github/settings.xml verify

name: Java CI
on:
  pull_request:
    branches:
    - release/*
  push:
    branches:
    - release/*
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        java_version: [8, 11]
        os:
        - ubuntu-latest
    env:
      JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK
      uses: actions/setup-java@v1
      with:
        java-version: ${{ matrix.java_version }}
    - uses: actions/cache@v1
      with:
        path: ~/.m2/repository
        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
        restore-keys: |
          ${{ runner.os }}-maven-
    - name: Print Java and Maven versions
      run: ./mvnw -B -ff -s .github/settings.xml -v
    - name: Build with Maven
      run: ./mvnw -B -ff -s .github/settings.xml install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
    - name: Run tests
      run: ./mvnw -B -ff -s .github/settings.xml verify

Update branch list in GitHub Action workflow
Update branch list in GitHub Action workflow

[ci skip]
