This commit is contained in:
parent
c7eee5aab3
commit
f203913b6b
@ -1,30 +1,23 @@
|
||||
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
|
||||
container: docker.xuanyuan.me/hui369/sctmes-v5-runner:v1.6
|
||||
|
||||
steps:
|
||||
- name: Checkout code2
|
||||
- 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 的工作目录
|
||||
GIT_PROJECT_PATH: /workspace/MES/SCTMES_V5 # Gitea 的工作目录
|
||||
ALLOWED_PATHS: '["EdgeManager/**", "mes_in_sct/**", "mes_in_task/**", "webman/**"]' # 允许检测目录
|
||||
IGNORED_PATHS: '["EdgeManager/vendor/**", "mes_in_sct/vendor/**", "mes_in_task/vendor/**", "webman/public/**", "webman/runtime/**", "webman/vendor/**"]' # 忽略检测目录
|
||||
run: |
|
||||
cd /workspace
|
||||
./audit_code.sh
|
Loading…
x
Reference in New Issue
Block a user