From cbe5cd869f11305b6609c3b2a1a47dd25324c2be Mon Sep 17 00:00:00 2001 From: Alexander Dudkin Date: Tue, 24 Sep 2024 20:47:12 +0300 Subject: [PATCH] chore: update workflow --- .github/workflows/maven-build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 7895640..462aa5e 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -10,14 +10,17 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + java: [ '21' ] steps: - uses: actions/checkout@v2 - - name: Set up JDK 21 + - name: Set up JDK ${{matrix.java}} uses: actions/setup-java@v2 with: - java-version: '21' - distribution: 'temurin' + java-version: ${{matrix.java}} + distribution: 'adopt' cache: maven - name: Build with Maven - run: mvn -B install --file pom.xml -DdisableXmlReport=true \ No newline at end of file + run: mvn -B package --file pom.xml \ No newline at end of file