diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 240d67e..0f0f4d6 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -3,15 +3,18 @@ name: Java CI with Maven on: push: - branches: [ "master" ] + branches: ['master'] pull_request: - branches: [ "master" ] + branches: ['master'] jobs: - java-8: - + build: runs-on: ubuntu-latest + strategy: + matrix: + java-version: [8, 11, 17] + steps: - uses: actions/checkout@v3 - name: Set up JDK 8 @@ -22,33 +25,3 @@ jobs: cache: maven - name: Build with Maven run: mvn clean install --file pom.xml - - java-11: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - cache: maven - - name: Build with Maven - run: mvn clean install --file pom.xml - - java-17: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'adopt' - cache: maven - - name: Build with Maven - run: mvn clean install --file pom.xml