-
Notifications
You must be signed in to change notification settings - Fork 8
61 lines (56 loc) · 1.91 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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 Glow - CI
on:
push:
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build:
name: ${{ matrix.os }}-jdk${{ matrix.java }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
java: ['21', '17', '11']
steps:
- uses: actions/checkout@v3
with:
path: wildfly-glow
- uses: actions/checkout@v2
with:
repository: wildfly/wildfly-maven-plugin
path: wildfly-maven-plugin
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
cache: 'maven'
distribution: 'temurin'
- name: Build and Test on ${{ matrix.java }}
run: mvn clean install
shell: bash
working-directory: wildfly-glow
- name: Run cli tests using bash
run: bash tests/run-cli-tests.sh
shell: bash
working-directory: wildfly-glow
- name: Retrieve WildFly Glow version
run: |
echo "WILDFLY_GLOW_VERSION=$(mvn -B help:evaluate -Dexpression=project.version -DforceStdout -q)" >> $GITHUB_ENV
shell: bash
working-directory: wildfly-glow
- name: Build and Test WildFly Maven Plugin on ${{ matrix.java }}
run: mvn clean install -Dversion.org.wildfly.glow=${{ env.WILDFLY_GLOW_VERSION }}
shell: bash
working-directory: wildfly-maven-plugin
- uses: actions/upload-artifact@v4
if: failure()
with:
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }}
path: |
!**/target/**
**/surefire-reports/*.txt