Skip to content

Commit

Permalink
Test Java (native) client in JDK 11 (#11599)
Browse files Browse the repository at this point in the history
* test java native client in jdk11

* test java natvie async

* remove java native from pom.xml

* revert changes
  • Loading branch information
wing328 authored Feb 13, 2022
1 parent d481aa3 commit 896504d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 14 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/samples-java-client-jdk11.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Samples Java Client JDK11

on:
push:
paths:
- 'samples/client/petstore/java/native**'
pull_request:
paths:
- 'samples/client/petstore/java/native**'
jobs:
build:
name: Build Java Client JDK11
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sample:
# clients
- samples/client/petstore/java/native
- samples/client/petstore/java/native-async
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
- name: Cache maven dependencies
uses: actions/cache@v2.1.7
env:
cache-name: maven-repository
with:
path: |
~/.m2
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
- name: Build
working-directory: ${{ matrix.sample }}
run: mvn clean package
14 changes: 0 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1357,20 +1357,6 @@
<!--<module>samples/server/petstore/erlang-server</module>-->
</modules>
</profile>
<!-- test with JDK11 in drone.io -->
<profile>
<id>samples.droneio</id>
<activation>
<property>
<name>env</name>
<value>samples.droneio</value>
</property>
</activation>
<modules>
<!-- clients -->
<module>samples/client/petstore/java/native</module>
</modules>
</profile>
<!-- test with Haskell -->
<profile>
<id>samples.misc</id>
Expand Down

0 comments on commit 896504d

Please sign in to comment.