From e6a69748623ee29ba5385cbe22f815bcfb49501f Mon Sep 17 00:00:00 2001 From: Raghav Aggarwal Date: Sun, 19 Apr 2026 00:54:34 +0530 Subject: [PATCH] TEZ-4710: Update github workflow to help with Deprecation of Node 20 in github Actions --- .github/workflows/build.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bec11e266..befb800940 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,9 +13,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +--- name: Build CI with different platforms/configs -on: +'on': push: branches: - 'master' @@ -23,6 +24,13 @@ on: branches: - 'master' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + jobs: build: strategy: @@ -31,8 +39,12 @@ jobs: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v6 + - uses: actions/setup-java@v5 with: java-version: ${{ matrix.java-version }} - - run: mvn clean install -DskipTests -Dmaven.javadoc.skip=true + distribution: 'temurin' + - name: Build with Maven + run: > + mvn --batch-mode --no-transfer-progress clean install + -DskipTests -Dmaven.javadoc.skip=true