23 lines
762 B
YAML
23 lines
762 B
YAML
name: Run Unit Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
test:
|
|
runs-on: phpunit_test
|
|
container: docker.xuanyuan.me/hui369/sctmes-v5-runner:v1.6
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: http://119.91.43.128:3003/james/checkout@v4
|
|
|
|
- name: Run code review script
|
|
env:
|
|
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 |