From e418c296dea037d572bf29b543df9d952ffc847b Mon Sep 17 00:00:00 2001 From: jank Date: Wed, 28 May 2025 12:31:29 +0200 Subject: [PATCH] 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"