From d621aa3d6a2d3ded26525a10694a1fa4e6e1dede Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Sun, 12 Jul 2026 19:08:41 +0100 Subject: [PATCH] build(ci): unit test --- .gitea/workflows/unit-tests.yml | 23 +++++++++++++++++++++++ .gitignore | 1 - .mvn/wrapper/maven-wrapper.properties | 3 +++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/unit-tests.yml create mode 100644 .mvn/wrapper/maven-wrapper.properties diff --git a/.gitea/workflows/unit-tests.yml b/.gitea/workflows/unit-tests.yml new file mode 100644 index 0000000..785778e --- /dev/null +++ b/.gitea/workflows/unit-tests.yml @@ -0,0 +1,23 @@ +name: Unit Tests + +on: + push: + +jobs: + unit-tests: + name: Maven unit tests + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Java 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "21" + cache: maven + + - name: Run unit tests + run: ./mvnw --batch-mode --no-transfer-progress test diff --git a/.gitignore b/.gitignore index 60a230e..4a0b46b 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,3 @@ build/ frontend/.flowbite-react generated -.mvn diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..ffcab66 --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,3 @@ +wrapperVersion=3.3.4 +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip