Skip to content

Commit 896504d

Browse files
authored
Test Java (native) client in JDK 11 (#11599)
* test java native client in jdk11 * test java natvie async * remove java native from pom.xml * revert changes
1 parent d481aa3 commit 896504d

2 files changed

Lines changed: 37 additions & 14 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Samples Java Client JDK11
2+
3+
on:
4+
push:
5+
paths:
6+
- 'samples/client/petstore/java/native**'
7+
pull_request:
8+
paths:
9+
- 'samples/client/petstore/java/native**'
10+
jobs:
11+
build:
12+
name: Build Java Client JDK11
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
sample:
18+
# clients
19+
- samples/client/petstore/java/native
20+
- samples/client/petstore/java/native-async
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-java@v2
24+
with:
25+
distribution: 'temurin'
26+
java-version: 11
27+
- name: Cache maven dependencies
28+
uses: actions/cache@v2.1.7
29+
env:
30+
cache-name: maven-repository
31+
with:
32+
path: |
33+
~/.m2
34+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
35+
- name: Build
36+
working-directory: ${{ matrix.sample }}
37+
run: mvn clean package

pom.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,20 +1357,6 @@
13571357
<!--<module>samples/server/petstore/erlang-server</module>-->
13581358
</modules>
13591359
</profile>
1360-
<!-- test with JDK11 in drone.io -->
1361-
<profile>
1362-
<id>samples.droneio</id>
1363-
<activation>
1364-
<property>
1365-
<name>env</name>
1366-
<value>samples.droneio</value>
1367-
</property>
1368-
</activation>
1369-
<modules>
1370-
<!-- clients -->
1371-
<module>samples/client/petstore/java/native</module>
1372-
</modules>
1373-
</profile>
13741360
<!-- test with Haskell -->
13751361
<profile>
13761362
<id>samples.misc</id>

0 commit comments

Comments
 (0)