Skip to content

Commit

Permalink
add test for java 11 and 17
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-bli committed Dec 13, 2023
1 parent 920e6de commit 1c44254
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/precommit-udf-multiple-jdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: precommit test - udf with multiple JDK
on:
push:
branches: [ main ]
pull_request:
branches: '**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17 ]
fail-fast: false
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Decrypt profile.properties
run: .github/scripts/decrypt_profile.sh
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: mvn -Dgpg.skip test -Dsuites="com.snowflake.snowpark_test.AlwaysCleanUDFSuite"
1 change: 1 addition & 0 deletions fips-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@
--add-opens=java.base/java.util=ALL-UNNAMED
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
--add-opens=java.base/sun.security.util=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@
--add-opens=java.base/java.util=ALL-UNNAMED
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
--add-opens=java.base/sun.security.util=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
Expand Down

0 comments on commit 1c44254

Please sign in to comment.