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..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 @@ -71,5 +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 - You may also use the tea cli to find out various things about the pull request" + 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" 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