add test.yml
Some checks failed
Run Unit Tests / test (push) Failing after 1m17s

This commit is contained in:
james 2025-06-14 22:20:27 +08:00
parent 9456000582
commit f043fc9f26

26
.gitea/workflows/test.yml Normal file
View File

@ -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