Merge pull request 'feat: Add test backend pipeline' (!235) from test-pipeline into main
Reviewed-on: #235 Reviewed-by: Phan Huy Tran <ptran@noreply.localhost> balls
This commit is contained in:
commit
06c4df7602
2 changed files with 28 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -72,4 +72,5 @@ jobs:
|
|||
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
|
||||
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