30 lines
640 B
YAML

name: Run Unit Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
paths-ignore:
- '.gitea/**'
jobs:
test:
runs-on: phpunit_test
container: docker.xuanyuan.me/xeden3/ai-code-reviewer-gitea-runner:v1.2
steps:
- name: Checkout code2
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