Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into SNOW-1692380-release-…
Browse files Browse the repository at this point in the history
…pipeline

# Conflicts:
#	pom.xml
  • Loading branch information
sfc-gh-pbulawa committed Oct 21, 2024
2 parents ef511bd + e43f7ac commit 143ca86
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ jobs:
TEST_GROUPS: ${{ matrix.runConfig.testGroups }}
JDBC_VERSION: ${{ matrix.runConfig.jdbcVersion }}
run: ci\\test_windows.bat
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

test-mac:
needs: build
Expand Down Expand Up @@ -113,6 +117,10 @@ jobs:
TEST_GROUPS: ${{ matrix.runConfig.testGroups }}
JDBC_VERSION: ${{ matrix.runConfig.jdbcVersion }}
run: bash ./ci/test.sh
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

test-linux:
needs: build
Expand Down Expand Up @@ -150,3 +158,7 @@ jobs:
TEST_GROUPS: ${{ matrix.runConfig.testGroups }}
JDBC_VERSION: ${{ matrix.runConfig.jdbcVersion }}
run: ./ci/test.sh
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
[<img src="https://github.com/snowflakedb/snowflake-hibernate/actions/workflows/build-test.yml/badge.svg?branch=main">](https://github.com/snowflakedb/snowflake-hibernate/actions/workflows/build-test.yml?query=branch%3Amain)
[<img src="http://img.shields.io/:license-Apache--2.0-brightgreen.svg">](http://www.apache.org/licenses/LICENSE-2.0.txt)

[![codecov](https://codecov.io/gh/snowflakedb/snowflake-hibernate/graph/badge.svg?token=J8TOYZ6SZK)](https://codecov.io/gh/snowflakedb/snowflake-hibernate)

## Brief

This project is an SQL dialect definition for Hibernate Core enabling Java developers to reuse ORM features with Snowflake database.
Expand Down
32 changes: 30 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

<fmt-maven-plugin.version>2.24</fmt-maven-plugin.version>
<hibernate-core.version>6.4.4.Final</hibernate-core.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
<junit-jupiter-engine.version>5.10.2</junit-jupiter-engine.version>
<junit-jupiter-params.version>5.10.2</junit-jupiter-params.version>
<log4j-slf4j2-impl.version>2.23.0</log4j-slf4j2-impl.version>
Expand Down Expand Up @@ -149,7 +150,7 @@
<version>${maven-surefire-plugin.version}</version>
<configuration>
<groups>${testGroups}</groups>
<argLine>--add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.util.calendar=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED</argLine>
<argLine>${argLine} --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.util.calendar=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED</argLine>
</configuration>
</plugin>
<plugin>
Expand All @@ -158,7 +159,7 @@
<version>${maven-failsafe-plugin.version}</version>
<configuration>
<groups>${testGroups}</groups>
<argLine>--add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.util.calendar=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED</argLine>
<argLine>${argLine} --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.util.calendar=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED</argLine>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -221,6 +222,33 @@
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>pre-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>target/jacoco-tests.exec</destFile>
</configuration>
</execution>
<execution>
<id>post-test</id>
<goals>
<goal>report</goal>
</goals>
<phase>test</phase>
<configuration>
<dataFile>target/jacoco-tests.exec</dataFile>
<outputDirectory>target/jacoco-tests</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 143ca86

Please sign in to comment.