Skip to content

Commit

Permalink
update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emmartins committed Mar 7, 2024
1 parent f1d9e21 commit 81f67ae
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 81f67ae

Please sign in to comment.