Skip to content

Commit

Permalink
Import opendatahub crds to test suite na drun unit tests (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
kornys authored Nov 9, 2023
1 parent 23f27d8 commit c7f3ee1
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 869 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yaml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: UnitTest

on:
push:
Expand All @@ -7,7 +7,7 @@ on:
branches: [ main ]

jobs:
build:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,4 +26,6 @@ jobs:
${{ runner.os }}-maven-
- name: Validate with Maven
run: mvn test
run: mvn test --settings settings.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 changes: 36 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,22 @@
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<fabric8.version>6.9.2</fabric8.version>
<sundrio.version>0.101.3</sundrio.version>
<lobbok.version>1.18.30</lobbok.version>
<maven.compiler.version>3.11.0</maven.compiler.version>
<junit.jupiter.version>5.8.2</junit.jupiter.version>
<junit.platform.version>1.8.2</junit.platform.version>
<maven.surefire.version>3.2.2</maven.surefire.version>
</properties>

<repositories>
<repository>
<id>github</id>
<name>GitHub Apache Maven Packages</name>
<url>https://maven.pkg.github.com/ExcelentProject/opendatahub-crds</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>io.fabric8</groupId>
Expand Down Expand Up @@ -81,10 +91,35 @@
<version>${maven.surefire.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.sundr</groupId>
<artifactId>builder-annotations</artifactId>
<version>${sundrio.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lobbok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.odh</groupId>
<artifactId>opendatahub-crds</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.version}</version>
<configuration>
<test>UnitTests</test>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
Expand All @@ -99,7 +134,7 @@
</executions>
<configuration>
<forkCount>0</forkCount>
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
<includes>
<include>**/IT*.java</include>
<include>**/*IT.java</include>
Expand Down
10 changes: 10 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<settings>
<servers>
<server>
<id>github</id>
<username>x-access-token</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>

Loading

0 comments on commit c7f3ee1

Please sign in to comment.