name: build
on: [pull_request, push]

jobs:
  build:
    strategy:
      matrix:
        java: [8, 15]
        os: [ubuntu-latest]
    name: Build - Java ${{ matrix.java }}
    runs-on: ${{ matrix.os }}
    steps:
      - name: checkout repository
        uses: actions/checkout@v2
      - name: validate gradle wrapper
        uses: gradle/wrapper-validation-action@v1
      - name: setup jdk ${{ matrix.java }}
        uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.java }}
      - name: make gradle wrapper executable
        if: ${{ runner.os != 'Windows' }}
        run: chmod +x ./gradlew
      - name: build
        run: ./gradlew build
name: build
on: [pull_request, push]

jobs:
  build:
    strategy:
      matrix:
        java: [16]
        os: [ubuntu-latest]
    name: Build - Java ${{ matrix.java }}
    runs-on: ${{ matrix.os }}
    steps:
      - name: checkout repository
        uses: actions/checkout@v2
      - name: validate gradle wrapper
        uses: gradle/wrapper-validation-action@v1
      - name: setup jdk ${{ matrix.java }}
        uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.java }}
      - name: make gradle wrapper executable
        if: ${{ runner.os != 'Windows' }}
        run: chmod +x ./gradlew
      - name: build
        run: ./gradlew build
Change workflow to java 16 only
Change workflow to java 16 only