feat: Add test backend pipeline
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / oxlint (pull_request) Successful in 21s
CI / eslint (pull_request) Successful in 30s
CI / Docker frontend validation (pull_request) Successful in 30s
CI / prettier (pull_request) Successful in 41s
CI / Docker backend validation (pull_request) Successful in 16s
CI / test-build (pull_request) Successful in 1m8s
CI / Checkstyle Main (pull_request) Successful in 1m17s
CI / Backend Tests (pull_request) Successful in 1m53s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m26s
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / oxlint (pull_request) Successful in 21s
CI / eslint (pull_request) Successful in 30s
CI / Docker frontend validation (pull_request) Successful in 30s
CI / prettier (pull_request) Successful in 41s
CI / Docker backend validation (pull_request) Successful in 16s
CI / test-build (pull_request) Successful in 1m8s
CI / Checkstyle Main (pull_request) Successful in 1m17s
CI / Backend Tests (pull_request) Successful in 1m53s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m26s
This commit is contained in:
parent
b34b12cfc7
commit
e418c296de
2 changed files with 28 additions and 1 deletions
|
@ -29,6 +29,32 @@ jobs:
|
||||||
workflow:
|
workflow:
|
||||||
- '.gitea/workflows/**'
|
- '.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:
|
checkstyle:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: "Checkstyle Main"
|
name: "Checkstyle Main"
|
||||||
|
|
|
@ -72,4 +72,5 @@ jobs:
|
||||||
tea \"<reject or approve>\" ${PR_NUMBER} \"<your review message here>\"
|
tea \"<reject or approve>\" ${PR_NUMBER} \"<your review message here>\"
|
||||||
|
|
||||||
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. 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"
|
||||||
|
|
Reference in a new issue