Skip to content

refactor: move tests to a separate project to simplify build (special… #558

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
52 changes: 31 additions & 21 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,34 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3
- name: cache
uses: actions/cache@v4
with:
path: |
~/.mv2/repository
key: om-${{hashFiles('**/pom.xml')}}

- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: 21
distribution: 'zulu'
- run: mvn dependency:go-offline
- name: Build
run: mvn clean process-test-classes verify

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/checkout@v3

- name: Cache Maven Repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: om-${{ hashFiles('**/pom.xml') }}
restore-keys: |
om-

- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: 21
distribution: 'zulu'

- run: mvn dependency:go-offline

- name: Build
run: mvn clean process-test-classes verify

- name: Save Maven Cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: om-${{ hashFiles('**/pom.xml') }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<modules>
<!-- Main Project -->
<module>redis-om-spring</module>
<module>tests</module>
<!-- Demos -->
<module>demos/roms-documents</module>
<module>demos/roms-hashes</module>
Expand Down
53 changes: 0 additions & 53 deletions redis-om-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,59 +290,6 @@
<version>${djl.version}</version>
<optional>true</optional>
</dependency>

<!-- test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.redis</groupId>
<artifactId>testcontainers-redis</artifactId>
<version>${testcontainers.redis.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.karuslabs</groupId>
<artifactId>elementary</artifactId>
<version>${elementary.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${testcontainers.junit.jupiter}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
Expand Down
Loading
Loading