Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
368d467
feat(ci): implement unit tests
rithvik-doshi Nov 25, 2025
e1d484f
ci: unit-tests
rithvik-doshi Nov 25, 2025
44c261d
Comment out GitHub Actions workflow steps
rithvik-doshi Nov 25, 2025
5df6a12
fix: improve the python test by calling the actual file
rithvik-doshi Nov 25, 2025
9be43a9
ci: test name
rithvik-doshi Dec 2, 2025
2104dc5
Merge branch 'default-app' into unit-test
rithvik-doshi Dec 2, 2025
05ffb24
Merge branch 'default-app' of github.com:SEMOSS/Template into unit-test
tevanburen Dec 2, 2025
40c07d5
ci: rework test and use specific snapshot version and update pom slig…
rithvik-doshi Dec 3, 2025
c16eb5b
fix: fix
rithvik-doshi Dec 3, 2025
80193cd
fix: fix
rithvik-doshi Dec 3, 2025
e04a3fa
chore: oopsy
rithvik-doshi Dec 3, 2025
ea67ee6
ci: fix pom
rithvik-doshi Dec 3, 2025
2248ed2
ci: fix script
rithvik-doshi Dec 3, 2025
8f040fc
ci: update commands
rithvik-doshi Dec 3, 2025
af02b47
ci: safe directory
rithvik-doshi Dec 3, 2025
942674d
fix: fix
rithvik-doshi Dec 3, 2025
dae6960
fix: oops
rithvik-doshi Dec 3, 2025
daf8239
fix: some weirdness and disabling push for now
rithvik-doshi Dec 3, 2025
128554c
fix: some weirdness and disabling push for now
rithvik-doshi Dec 3, 2025
b6d5af2
fix: fix
rithvik-doshi Dec 3, 2025
3fb274b
fix: fix
rithvik-doshi Dec 3, 2025
11a5f96
fix: fix
rithvik-doshi Dec 3, 2025
385a928
fix: fix
rithvik-doshi Dec 3, 2025
3cefc04
Merge branch 'default-app' into unit-test
rithvik-doshi Dec 3, 2025
e52736a
docs: docs and comment
rithvik-doshi Dec 3, 2025
e9cfca4
Merge branch 'unit-test' of https://github.com/SEMOSS/Template into u…
rithvik-doshi Dec 3, 2025
deeb89c
ci: report test
rithvik-doshi Dec 3, 2025
b3d4281
ci: report test
rithvik-doshi Dec 3, 2025
59c30a0
ci: we r done probably
rithvik-doshi Dec 3, 2025
69096e3
Merge branch 'default-app' into unit-test
rithvik-doshi Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Run Unit Tests

on:
pull_request:
branches: [ default-app ]
workflow_dispatch:
inputs:
snapshot:
description: 'CI version snapshot'
required: true
default: '5.0.0-alpha-SNAPSHOT'
type: choice
options:
- '5.0.0-alpha-SNAPSHOT'
clean_install:
description: 'Run clean install with -U flag if true, else false'
required: true
default: "false"

jobs:
test:
name: Run Test Suite
runs-on: ubuntu-latest
container: maven:3.9.9-amazoncorretto-21-debian
env:
SNAPSHOT: ${{ inputs.snapshot || '5.0.0-alpha-SNAPSHOT' }}
CLEAN_INSTALL: ${{ inputs.clean_install || 'false' }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: /root/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Maven Install
run: |
if [ "${CLEAN_INSTALL}" = "true" ] || [ -z "${CLEAN_INSTALL}" ]; then
echo "clean install: ${CLEAN_INSTALL}"
echo "snapshot: ${SNAPSHOT}"
echo "Running mvn clean install with -U flag"
mvn clean install -U -DskipTests=true -Dci.version="${SNAPSHOT}" | grep -v "^Progress (1):"
else
echo "Running mvn install without -U flag"
mvn install -DskipTests=true -Dci.version="${SNAPSHOT}" | grep -v "^Progress (1):"
fi

- name: Run Unit Tests
run: |
mvn test -Dci.version="${SNAPSHOT}" | grep -v "^Progress (1):"

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ client/node_modules/
portals/
classes/
target/
test-classes/

# Local configuration files
*.local
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ This repository includes several tools to help maintain code quality:

- See `client/README.md` for front-end development instructions.
- See `java/README.md` for back-end/reactor development.
- See `test/README.md` for comprehensive testing guide and workflow.

---

Expand Down
55 changes: 54 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
</properties>
<build>
<sourceDirectory>java/src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<outputDirectory>classes</outputDirectory>
<testOutputDirectory>test-classes</testOutputDirectory>
<resources>
<resource>
<directory>java</directory>
Expand Down Expand Up @@ -61,6 +63,26 @@
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>public</id>
<name>Sonatype's Maven repository</name>
<url>https://oss.sonatype.org/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>sonatype-snapshots</id>
<name>Sonatype Snapshots</name>
<url>https://central.sonatype.com/repository/maven-snapshots</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>3rdPartyJARs</id>
<name>Maven repository</name>
Expand All @@ -80,6 +102,38 @@
<version>${ci.version}</version>
<scope>provided</scope>
</dependency>
<!-- testing jars -->
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>6.0.0</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.junit.platform/junit-platform-suite -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-suite</artifactId>
<version>6.0.0</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.18.0</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
</exclusion>
<exclusion>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<reporting>
<plugins>
Expand All @@ -89,7 +143,6 @@
<version>3.6.3</version>
<configuration>
<source>21</source>
<target>21</target>
<encoding>UTF-8</encoding>
<show>private</show>
<nohelp>true</nohelp>
Expand Down
Loading