diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml
new file mode 100644
index 0000000..06416ec
--- /dev/null
+++ b/.github/workflows/unit_tests.yml
@@ -0,0 +1,38 @@
+name: Java Unit Testing
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ # Step 1: Check out the repository
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ # Step 2: Set up JDK
+ - name: Set up JDK 11
+ uses: actions/setup-java@v4
+ with:
+ java-version: '11'
+ distribution: 'temurin' # You can change this to your desired distribution (e.g., 'zulu', 'adopt')
+
+ # Step 3: Cache Maven dependencies
+ - name: Cache Maven dependencies
+ uses: actions/cache@v3
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-m2
+
+ # Step 4: Build and test with Maven
+ - name: Build and run tests
+ run: mvn clean test
diff --git a/MavenBack/pom.xml b/MavenBack/pom.xml
index f0e6033..e010926 100644
--- a/MavenBack/pom.xml
+++ b/MavenBack/pom.xml
@@ -13,6 +13,7 @@
11
UTF-8
11.0.12
+ 2.0.9
ppp.ServerMain
@@ -65,6 +66,14 @@
7.5.0
+
+
+ org.mockito
+ mockito-junit-jupiter
+ 5.14.2
+ compile
+
+