This commit is contained in:
parent
9456000582
commit
f043fc9f26
26
.gitea/workflows/test.yml
Normal file
26
.gitea/workflows/test.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user