From 81f67aeef5417dd8c311bbe1549ff2e0564c1c05 Mon Sep 17 00:00:00 2001 From: Eduardo Martins Date: Thu, 7 Mar 2024 15:31:58 +0000 Subject: [PATCH] update CI workflow --- .github/workflows/ci.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af2f3129..6f5aaca4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,3 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven name: WildFly Server Migration CI on: @@ -8,6 +6,11 @@ on: branches: - master +# Only run the latest job +concurrency: + group: '${{ github.workflow }} @ ${{ github.ref || github.run_id }}' + cancel-in-progress: true + jobs: Test-build-default-matrix: name: BUILD DEFAULT - JDK${{ matrix.jdk }} - ${{ matrix.os }} @@ -16,19 +19,17 @@ jobs: fail-fast: false matrix: jdk: [11, 17] - os: [ubuntu-20.04, windows-latest] + os: [ubuntu-latest, windows-latest] steps: - - uses: n1hility/cancel-previous-runs@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v4 with: path: wildfly-server-migration - - name: Set up JDK ${{ matrix.java }} - uses: AdoptOpenJDK/install-jdk@v1 + - name: Set up JDK ${{ matrix.jdk }} + uses: actions/setup-java@v4 with: - version: ${{ matrix.jdk }} - impl: hotspot + java-version: ${{ matrix.jdk }} + distribution: 'temurin' + cache: 'maven' - name: Build Server Migration Tool run: | cd wildfly-server-migration