From 45b31ac2720d3eda35f83ac7a1fc342b4209be81 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Thu, 26 Sep 2024 11:08:40 +0100 Subject: [PATCH] Align build.yml with the MP Config build.yml --- .github/workflows/build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3851888e..80a4533e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,18 +31,22 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8, 11] + java: [11, 17] name: build with jdk ${{matrix.java}} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 name: checkout + with: + ref: ${{ github.event.pull_request.merge_commit_sha }} - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v4 name: set up jdk ${{matrix.java}} with: + distribution: temurin java-version: ${{matrix.java}} - distribution: 'temurin' - name: build with maven - run: mvn verify + run: | + mvn -q -N io.takari:maven:0.7.7:wrapper -Dmaven=3.9.0 && ./mvnw -v + ./mvnw -ntp formatter:validate install