diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3e0923..b08ee29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,16 +14,20 @@ on: jobs: build: - name: 'Build and test' + name: Linux-JDK${{ matrix.jdk }} runs-on: 'ubuntu-latest' + strategy: + fail-fast: false + matrix: + jdk: [11, 17, 21] steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Set up JDK 11 + - name: Set up JDK ${{ matrix.jdk }} uses: actions/setup-java@v2 with: - java-version: 11 + java-version: ${{ matrix.jdk }} distribution: 'adopt' cache: maven - name: Build and test