Repository navigation
134 lines (129 loc) · 6.7 KB
/
Copy pathsamples-java-client-jdk17.yaml
File metadata and controls
134 lines (129 loc) · 6.7 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: Samples Java Client JDK17
on:
push:
paths:
- samples/client/petstore/java/resttemplate-jakarta/**
- samples/client/petstore/java/resttemplate-springBoot4-*/**
- samples/client/petstore/java/webclient-jakarta/**
- samples/client/petstore/java/restclient-*/**
- samples/client/petstore/java/native-jackson3/**
- samples/client/petstore/java/apache-httpclient-jackson3/**
- samples/client/petstore/java/okhttp-jackson3/**
- samples/client/petstore/java/okhttp-jackson3-jspecify/**
- samples/client/others/java/okhttp-jackson3-oneOf/**
- samples/client/petstore/java/native-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-openapiNullable/**
- samples/client/others/java/webclient-sealedInterface/**
- samples/client/others/java/webclient-sealedInterface_3_1/**
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
- samples/client/others/java/restclient-enum-in-multipart/**
- samples/client/others/java/restclient-sealedInterface/**
- samples/client/others/java/restclient-jackson-default-impl/**
- samples/client/others/java/restclient-useAbstractionForFiles/**
- samples/client/petstore/java/jersey3-oneOf/**
- samples/client/petstore/java/jersey3-jackson3/**
- samples/client/petstore/java/microprofile-oneof-sealed/**
- samples/client/petstore/java/rest-assured-jackson3/**
pull_request:
paths:
- samples/client/petstore/java/resttemplate-jakarta/**
- samples/client/petstore/java/resttemplate-springBoot4-*/**
- samples/client/petstore/java/webclient-jakarta/**
- samples/client/petstore/java/restclient-*/**
- samples/client/petstore/java/native-jackson3/**
- samples/client/petstore/java/apache-httpclient-jackson3/**
- samples/client/petstore/java/okhttp-jackson3/**
- samples/client/petstore/java/okhttp-jackson3-jspecify/**
- samples/client/others/java/okhttp-jackson3-oneOf/**
- samples/client/petstore/java/native-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-openapiNullable/**
- samples/client/others/java/webclient-sealedInterface/**
- samples/client/others/java/webclient-sealedInterface_3_1/**
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
- samples/client/others/java/restclient-enum-in-multipart/**
- samples/client/others/java/restclient-sealedInterface/**
- samples/client/others/java/restclient-jackson-default-impl/**
- samples/client/others/java/restclient-useAbstractionForFiles/**
- samples/client/petstore/java/jersey3-oneOf/**
- samples/client/petstore/java/jersey3-jackson3/**
- samples/client/petstore/java/microprofile-oneof-sealed/**
- samples/client/petstore/java/rest-assured-jackson3/**
jobs:
build:
name: Build Java Client JDK17
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sample:
# clients
- samples/client/petstore/java/resttemplate-jakarta
- samples/client/petstore/java/resttemplate-springBoot4-jackson2
- samples/client/petstore/java/resttemplate-springBoot4-jackson3
- samples/client/petstore/java/webclient-jakarta
- samples/client/petstore/java/restclient
- samples/client/petstore/java/restclient-nullable-arrays
- samples/client/petstore/java/restclient-springBoot4-jackson2
- samples/client/petstore/java/restclient-springBoot4-jackson3
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-openapiNullable
- samples/client/petstore/java/native-jackson3-jspecify
- samples/client/petstore/java/restclient-swagger2
- samples/client/petstore/java/restclient-useSingleRequestParameter
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
- samples/client/petstore/java/native-jackson3
- samples/client/petstore/java/apache-httpclient-jackson3
- samples/client/petstore/java/okhttp-jackson3
- samples/client/petstore/java/okhttp-jackson3-jspecify
- samples/client/others/java/okhttp-jackson3-oneOf
- samples/client/others/java/webclient-sealedInterface
- samples/client/others/java/webclient-sealedInterface_3_1
- samples/client/petstore/java/webclient-springBoot4-jackson3
- samples/client/petstore/java/webclient-useSingleRequestParameter
- samples/client/others/java/restclient-enum-in-multipart
- samples/client/others/java/restclient-sealedInterface
- samples/client/others/java/restclient-jackson-default-impl
- samples/client/others/java/restclient-useAbstractionForFiles
- samples/client/petstore/java/jersey3-oneOf
- samples/client/petstore/java/jersey3-jackson3
- samples/client/petstore/java/microprofile-oneof-sealed
- samples/client/petstore/java/rest-assured-jackson3
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with:
distribution: 'temurin'
java-version: 17
cache: gradle
- name: Cache maven dependencies
uses: actions/cache@v6
env:
cache-name: maven-repository
with:
path: |
~/.m2
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
- name: Build with Maven
working-directory: ${{ matrix.sample }}
run: mvn clean package --no-transfer-progress
- name: Cache gradle dependencies
uses: actions/cache@v6
env:
cache-name: gradle-caches
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
- name: Cache gradle wrapper
uses: actions/cache@v6
env:
cache-name: gradle-wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Build
working-directory: ${{ matrix.sample }}
# the microprofile library does not generate a Gradle build; skip samples without a wrapper
if: ${{ hashFiles(format('{0}/gradlew', matrix.sample)) != '' }}
run: /bin/sh gradlew build -x test --no-daemon