From cfc54d3558669b1c66446cce8326947f1e9b04b7 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 | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af2f3129..f58b57c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,13 @@ -# 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: pull_request: types: [opened, synchronize, reopened, ready_for_review] - 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: @@ -16,19 +17,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