generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 60
100 lines (86 loc) · 2.82 KB
/
build.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Build
on:
pull_request:
paths-ignore:
- '.github/project.yml'
env:
QUARKUS_CXF_MTOM_LARGE_ATTACHMENT_INCREMENT_KB: 512
JAVA_VERSION: 17
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build-and-run-jvm-tests:
if: startsWith(github.head_ref, 'trigger-release-') == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: build-and-run-jvm-tests
uses: ./.github/actions/build-and-run-jvm-tests
with:
java-version: ${{ env.JAVA_VERSION }}
native-tests:
strategy:
fail-fast: false
matrix:
testModule: ['client', 'client-server', 'fastinfoset', 'hc5', 'metrics', 'mtls', 'mtls -Djks', 'mtom', 'mtom-awt', 'opentelemetry', 'saaj', 'santuario-xmlsec', 'server', 'ws-rm-client', 'ws-security', 'ws-security -Djks', 'ws-security-policy', 'ws-security-policy -Djks', 'ws-trust', 'wsdl2java', 'wsdl2java-no-config']
name: ${{matrix.testModule}} native tests
needs: build-and-run-jvm-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: run-native-test
uses: ./.github/actions/run-native-test
with:
java-version: ${{ env.JAVA_VERSION }}
test-module-spec: ${{matrix.testModule}}
windows-tests:
name: Windows tests
needs: build-and-run-jvm-tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}
- name: Download Maven Repo
uses: actions/download-artifact@v4
with:
name: maven-repo
path: ..
- name: Extract Maven Repo
shell: bash
run: |
tar -xzf ../maven-repo.tgz -C ~
- name: mvn test
shell: bash
run: |
./mvnw -B test \
-Dskip-testcontainers-tests \
-Dformat.skip \
-Denforcer.skip \
-pl '!:quarkus-cxf-docs,!:quarkus-cxf-test-ws-rm-server-native' \
-ntp \
-fae
# Same as the previous but different default ConduitFactory
- name: QUARKUS_CXF_DEFAULT_HTTP_CONDUIT_FACTORY=URLConnectionHTTPConduitFactory mvn test
env:
QUARKUS_CXF_DEFAULT_HTTP_CONDUIT_FACTORY: URLConnectionHTTPConduitFactory
shell: bash
run: |
./mvnw -B clean test \
-Dskip-testcontainers-tests \
-Dformat.skip \
-Denforcer.skip \
-pl '!:quarkus-cxf-docs,!:quarkus-cxf-test-ws-rm-server-native' \
-ntp \
-fae