Skip to content

Commit 1b796d6

Browse files
authored
update workflow to test jersey3 in jdk 17 workflow (#23817)
1 parent 372a7e9 commit 1b796d6

4 files changed

Lines changed: 53 additions & 3 deletions

File tree

.github/workflows/samples-java-client-jdk11.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ on:
1818
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
1919
- samples/client/others/java/jersey2-oneOf-duplicates/**
2020
- samples/client/others/java/jersey2-oneOf-Mixed/**
21-
- samples/client/petstore/java/jersey3-oneOf/**
2221
- samples/client/others/java/okhttp-gson-streaming/**
2322
- samples/client/others/java/resteasy/**
2423
- samples/client/others/java/apache-httpclient/**
@@ -41,7 +40,6 @@ on:
4140
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
4241
- samples/client/others/java/jersey2-oneOf-duplicates/**
4342
- samples/client/others/java/jersey2-oneOf-Mixed/**
44-
- samples/client/petstore/java/jersey3-oneOf/**
4543
- samples/client/others/java/okhttp-gson-streaming/**
4644
- samples/client/others/java/resteasy/**
4745
- samples/client/others/java/apache-httpclient/**
@@ -111,7 +109,6 @@ jobs:
111109
- samples/client/others/java/jersey2-oneOf-Mixed/
112110
- samples/client/others/java/resttemplate-list-schema-validation/
113111
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/
114-
- samples/client/petstore/java/jersey3-oneOf/
115112
- samples/client/others/java/okhttp-gson-streaming/
116113
- samples/client/petstore/java/resteasy/
117114
- samples/client/petstore/java/apache-httpclient/

.github/workflows/samples-java-client-jdk17.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
- samples/client/others/java/restclient-enum-in-multipart/**
1818
- samples/client/others/java/restclient-sealedInterface/**
1919
- samples/client/others/java/restclient-useAbstractionForFiles/**
20+
- samples/client/petstore/java/jersey3-oneOf/**
2021
pull_request:
2122
paths:
2223
- samples/client/petstore/java/resttemplate-jakarta/**
@@ -33,6 +34,7 @@ on:
3334
- samples/client/others/java/restclient-enum-in-multipart/**
3435
- samples/client/others/java/restclient-sealedInterface/**
3536
- samples/client/others/java/restclient-useAbstractionForFiles/**
37+
- samples/client/petstore/java/jersey3-oneOf/**
3638
jobs:
3739
build:
3840
name: Build Java Client JDK17
@@ -64,6 +66,7 @@ jobs:
6466
- samples/client/others/java/restclient-enum-in-multipart
6567
- samples/client/others/java/restclient-sealedInterface
6668
- samples/client/others/java/restclient-useAbstractionForFiles
69+
- samples/client/petstore/java/jersey3-oneOf
6770
steps:
6871
- uses: actions/checkout@v5
6972
- uses: actions/setup-java@v5
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# run java client tests with petstore server
2+
name: Samples Java Petsore Client JDK17
3+
4+
on:
5+
push:
6+
paths:
7+
- samples/client/petstore/java/jersey3/**
8+
pull_request:
9+
paths:
10+
- samples/client/petstore/java/jersey3/**
11+
jobs:
12+
build:
13+
name: Build Java Client JDK17
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
sample:
19+
- samples/client/petstore/java/jersey3
20+
services:
21+
petstore-api:
22+
image: swaggerapi/petstore
23+
ports:
24+
- 80:8080
25+
env:
26+
SWAGGER_HOST: http://petstore.swagger.io
27+
SWAGGER_BASE_PATH: /v2
28+
steps:
29+
- uses: actions/checkout@v5
30+
- name: Add hosts to /etc/hosts
31+
run: |
32+
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
33+
- uses: actions/setup-java@v5
34+
with:
35+
distribution: 'temurin'
36+
java-version: 17
37+
- name: Cache maven dependencies
38+
uses: actions/cache@v5
39+
env:
40+
cache-name: maven-repository
41+
with:
42+
path: |
43+
~/.m2
44+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
45+
- name: Build with Maven
46+
working-directory: ${{ matrix.sample }}
47+
run: mvn clean package --no-transfer-progress

samples/client/petstore/java/jersey3-oneOf/.openapi-generator-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
#
25+
#
26+
#

0 commit comments

Comments
 (0)