From f043fc9f2612838798b0ac8d1b0cbb4717d264ba Mon Sep 17 00:00:00 2001 From: james Date: Sat, 14 Jun 2025 22:20:27 +0800 Subject: [PATCH] add test.yml --- .gitea/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..fef12ab --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,26 @@ +name: Run Unit Tests + +on: + push: + branches: + - main + - develop + pull_request: + +jobs: + test: + runs-on: phpunit_test + container: xeden3/ai-code-reviewer-gitea-runner:v1 + + steps: + - name: Checkout code + uses: http://119.91.43.128:3003/james/checkout@v4 + with: + fetch-depth: 2 # 至少获取最近两次提交 + + - name: Run code review script + env: + GIT_PROJECT_PATH: /workspace/hui/SCTMES_V5 # Gitea 的工作目录 + run: | + cd /workspace + ./audit_code.sh \ No newline at end of file