forked from emmartins/wildfly-server-migration
-
Notifications
You must be signed in to change notification settings - Fork 38
40 lines (36 loc) · 1.09 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: WildFly Server Migration CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
# 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 }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
jdk: [17, 21]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
path: wildfly-server-migration
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
cache: 'maven'
- name: Build Server Migration Tool
run: |
cd wildfly-server-migration
mvn -U -B -fae clean install
- uses: actions/upload-artifact@v4
if: failure()
with:
name: surefire-reports-JDK${{ matrix.jdk }}-${{ matrix.os }}
path: 'wildfly-server-migration/**/surefire-reports/*.txt'