From e418c296dea037d572bf29b543df9d952ffc847b Mon Sep 17 00:00:00 2001 From: jank Date: Wed, 28 May 2025 12:31:29 +0200 Subject: [PATCH 1/5] feat: Add test backend pipeline --- .gitea/workflows/ci.yml | 26 ++++++++++++++++++++++++++ .gitea/workflows/claude.yml | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e277f53..0408e04 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -29,6 +29,32 @@ jobs: workflow: - '.gitea/workflows/**' + test-backend: + runs-on: ubuntu-latest + name: "Backend Tests" + needs: changed_files + if: ${{ needs.changed_files.outputs.backend == 'true' || needs.changed_files.outputs.workflow == 'true' }} + container: + image: "cimg/openjdk:23.0-node" + steps: + - name: "Checkout" + uses: actions/checkout@v4 + + - name: "Run tests" + working-directory: ./backend + run: | + ./gradlew test + + - name: "Cache checkstyle results" + uses: actions/upload-artifact@v4 + with: + name: checkstyle-results + path: backend/build/reports/checkstyle + + - name: "Stop Gradle" + working-directory: ./backend + run: ./gradlew --stop + checkstyle: runs-on: ubuntu-latest name: "Checkstyle Main" diff --git a/.gitea/workflows/claude.yml b/.gitea/workflows/claude.yml index 731226e..a934dd1 100644 --- a/.gitea/workflows/claude.yml +++ b/.gitea/workflows/claude.yml @@ -72,4 +72,5 @@ jobs: tea \"\" ${PR_NUMBER} \"\" Make sure the comment is clear, professional, and helpful. Only run the tea comment command once you're finished reviewing all changes. AND MOST IMPORTANDLY ONLY REVIEW THE DIFF FROM THE CURRENT STATE TO THE MAIN BRANCH TO GET THAT USE GIT DIFF. Also if the changes are rejected be a bit mean - You may also use the tea cli to find out various things about the pull request" + You may also use the tea cli to find out various things about the pull request + Dont be too strict" From 9088adbac5230d79924e9f30f476274f5793c8a8 Mon Sep 17 00:00:00 2001 From: jank Date: Wed, 28 May 2025 12:54:08 +0200 Subject: [PATCH 2/5] fix: Line numbers --- .gitea/workflows/claude.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/claude.yml b/.gitea/workflows/claude.yml index a934dd1..0b77d30 100644 --- a/.gitea/workflows/claude.yml +++ b/.gitea/workflows/claude.yml @@ -73,4 +73,5 @@ jobs: Make sure the comment is clear, professional, and helpful. Only run the tea comment command once you're finished reviewing all changes. AND MOST IMPORTANDLY ONLY REVIEW THE DIFF FROM THE CURRENT STATE TO THE MAIN BRANCH TO GET THAT USE GIT DIFF. Also if the changes are rejected be a bit mean You may also use the tea cli to find out various things about the pull request - Dont be too strict" + Don't be too strict + Also MAKE SURE TO ALWAYS MENTION WHAT FILES AND LINE NUMBERS ARE WRONG" From c7e364a1888943c22e2d20598975dd30af8611b7 Mon Sep 17 00:00:00 2001 From: jank Date: Wed, 28 May 2025 13:01:41 +0200 Subject: [PATCH 3/5] fix: remove being mean --- .gitea/workflows/claude.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/claude.yml b/.gitea/workflows/claude.yml index 0b77d30..72efd20 100644 --- a/.gitea/workflows/claude.yml +++ b/.gitea/workflows/claude.yml @@ -71,7 +71,7 @@ jobs: tea \"\" ${PR_NUMBER} \"\" - Make sure the comment is clear, professional, and helpful. Only run the tea comment command once you're finished reviewing all changes. AND MOST IMPORTANDLY ONLY REVIEW THE DIFF FROM THE CURRENT STATE TO THE MAIN BRANCH TO GET THAT USE GIT DIFF. Also if the changes are rejected be a bit mean + Make sure the comment is clear, professional, and helpful. Only run the tea comment command once you're finished reviewing all changes. AND MOST IMPORTANDLY ONLY REVIEW THE DIFF FROM THE CURRENT STATE TO THE MAIN BRANCH TO GET THAT USE GIT DIFF You may also use the tea cli to find out various things about the pull request Don't be too strict Also MAKE SURE TO ALWAYS MENTION WHAT FILES AND LINE NUMBERS ARE WRONG" From 749303c3eedbc815d44d02cf871c75832c6984a9 Mon Sep 17 00:00:00 2001 From: jank Date: Sun, 1 Jun 2025 10:55:11 +0200 Subject: [PATCH 4/5] fix: Fix frontend build bc apparently they changed the node version --- frontend/.docker/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/.docker/Dockerfile b/frontend/.docker/Dockerfile index 494c91f..45a769c 100644 --- a/frontend/.docker/Dockerfile +++ b/frontend/.docker/Dockerfile @@ -1,7 +1,12 @@ FROM oven/bun:debian AS build WORKDIR /app -RUN apt-get update -y && apt-get install nodejs -y +RUN apt-get update -y && \ + apt-get install -y --no-install-recommends curl ca-certificates gnupg && \ + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + apt-get install -y --no-install-recommends nodejs && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* ENV NODE_ENV=production From 602166aa61c990a3072264029ecd9991774a8214 Mon Sep 17 00:00:00 2001 From: jank Date: Sun, 1 Jun 2025 10:55:11 +0200 Subject: [PATCH 5/5] fix: Remove sudo --- .gitea/workflows/claude.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/claude.yml b/.gitea/workflows/claude.yml index 72efd20..51c3018 100644 --- a/.gitea/workflows/claude.yml +++ b/.gitea/workflows/claude.yml @@ -31,7 +31,7 @@ jobs: TEA_VERSION=$(echo "${{ steps.tea_version.outputs.version }}") wget "https://gitea.com/gitea/tea/releases/download/v${TEA_VERSION}/tea-${TEA_VERSION}-linux-amd64" -O tea chmod +x tea - sudo mv tea /usr/local/bin/tea + mv tea /usr/local/bin/tea - name: Verify Tea Installation run: tea --version