Skip to content

Commit b679e38

Browse files
committed
test java clients with petstore in github workflow
1 parent 3a63c2f commit b679e38

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Samples Java Client JDK11
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/java/jersey2-java8/**
7+
- samples/openapi3/client/petstore/java/jersey2-java8/**
8+
- samples/client/petstore/java/jersey3/**
9+
- samples/client/petstore/java/jersey3-oneOf/**
10+
- samples/client/others/java/okhttp-gson-streaming/**
11+
- samples/client/petstore/java/okhttp-gson/**
12+
- samples/client/petstore/java/okhttp-gson-3.1/**
13+
- samples/client/petstore/java/okhttp-gson-dynamicOperations/**
14+
- samples/client/petstore/java/resteasy/**
15+
- samples/client/petstore/java-micronaut-client/**
16+
- samples/client/petstore/java/apache-httpclient/**
17+
- samples/client/petstore/java/resttemplate-jakarta/**
18+
pull_request:
19+
paths:
20+
- samples/client/petstore/java/jersey2-java8/**
21+
- samples/openapi3/client/petstore/java/jersey2-java8/**
22+
- samples/client/petstore/java/jersey3/**
23+
- samples/client/petstore/java/jersey3-oneOf/**
24+
- samples/client/others/java/okhttp-gson-streaming/**
25+
- samples/client/petstore/java/okhttp-gson/**
26+
- samples/client/petstore/java/okhttp-gson-3.1/**
27+
- samples/client/petstore/java/okhttp-gson-dynamicOperations/**
28+
- samples/client/petstore/java/resteasy/**
29+
- samples/client/petstore/java-micronaut-client/**
30+
- samples/client/petstore/java/apache-httpclient/**
31+
- samples/client/petstore/java/resttemplate-jakarta/**
32+
jobs:
33+
build:
34+
name: Build Java Client JDK11
35+
runs-on: ubuntu-latest
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
sample:
40+
- samples/client/petstore/java/jersey2-java8
41+
- samples/openapi3/client/petstore/java/jersey2-java8
42+
- samples/client/petstore/java/jersey3
43+
- samples/client/petstore/java/jersey3-oneOf
44+
- samples/client/others/java/okhttp-gson-streaming
45+
- samples/client/petstore/java/okhttp-gson
46+
- samples/client/petstore/java/okhttp-gson-3.1
47+
- samples/client/petstore/java/okhttp-gson-dynamicOperations
48+
- samples/client/petstore/java/resteasy
49+
- samples/client/petstore/java-micronaut-client
50+
- samples/client/petstore/java/apache-httpclient
51+
- samples/client/petstore/java/resttemplate-jakarta
52+
steps:
53+
- uses: actions/checkout@v5
54+
- uses: actions/setup-java@v5
55+
with:
56+
distribution: 'temurin'
57+
java-version: 11
58+
- name: Cache maven dependencies
59+
uses: actions/cache@v4
60+
env:
61+
cache-name: maven-repository
62+
with:
63+
path: |
64+
~/.m2
65+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
66+
- name: Build with Maven
67+
working-directory: ${{ matrix.sample }}
68+
run: mvn clean package --no-transfer-progress
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# OpenAPI Generator Ignore
22
# These are "live" test files which should not be overwritten
33
src/test/java/org/openapitools/client/JSONTest.java
4-
src/test/java/org/openapitools/client/JSONComposedSchemaTest.java
4+
src/test/java/org/openapitools/client/JSONComposedSchemaTest.java
5+
6+
7+

0 commit comments

Comments
 (0)