diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0307b80..804c464c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ # -# Copyright 2016-2021 Red Hat, Inc. and/or its affiliates +# Copyright 2016-2024 Red Hat, Inc. and/or its affiliates # and other contributors as indicated by the @author tags. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -32,26 +32,22 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest ] - java: ['11'] + os: [ubuntu-latest, windows-latest ] + java: ['11', '21'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/cache@v1 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: 'maven' - name: Build and Test on ${{ matrix.java }} run: mvn clean install - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: failure() with: name: surefire-reports-${{ matrix.os }}-${{ matrix.java }}