sqlite-web 0.7.2
gitea.db
action_run_job
Create
Query
access
access_token
action
action_artifact
action_run
action_run_index
action_run_job
action_runner
action_runner_token
action_schedule
action_schedule_spec
action_task
action_task_output
action_task_step
action_tasks_version
action_variable
app_state
attachment
auth_token
badge
branch
collaboration
comment
commit_status
commit_status_index
commit_status_summary
commit_sync_log
commit_sync_status
dbfs_data
dbfs_meta
deploy_key
email_address
email_hash
external_login_user
follow
gpg_key
gpg_key_import
hook_task
issue
issue_assignees
issue_content_history
issue_dependency
issue_index
issue_label
issue_pin
issue_user
issue_watch
label
language_stat
lfs_lock
lfs_meta_object
login_source
milestone
mirror
notice
notification
oauth2_application
oauth2_authorization_code
oauth2_grant
org_user
package
package_blob
package_blob_upload
package_cleanup_rule
package_file
package_property
package_version
project
project_board
project_issue
protected_branch
protected_tag
public_key
pull_auto_merge
pull_request
push_mirror
reaction
release
renamed_branch
repo_archiver
repo_hidden_file
repo_indexer_status
repo_license
repo_redirect
repo_topic
repo_transfer
repo_unit
repository
review
review_state
secret
session
sqlite_sequence
star
stopwatch
system_setting
task
team
team_invite
team_repo
team_unit
team_user
topic
tracked_time
two_factor
upload
user
user_badge
user_blocking
user_open_id
user_redirect
user_setting
version
watch
webauthn_credential
webhook
Toggle helper tables
Structure
Content
Query
Insert
Drop
Import
Export
Delete row 7865 from action_run_job
id
7865
run_id
6707
repo_id
6
owner_id
5
commit_sha
e112d45af414e4862c0328abad7c4df74d3c1dbf
is_fork_pull_request
0
name
后端单元测试
attempt
0
workflow_payload
name: Test Suite "on": push: b
name: Test Suite "on": push: branches: [main, develop, 'feature/**', 'claude/**'] pull_request: branches: [main, develop] workflow_dispatch: inputs: coverage_threshold: description: '覆盖率阈值 (%)' required: false default: '40' run_api_tests: description: '运行 API 集成测试' required: false default: 'true' type: boolean env: COVERAGE_THRESHOLD: ${{ github.event.inputs.coverage_threshold || '80' }} NODE_VERSION: "20" PNPM_VERSION: "8" jobs: backend-unit-test: name: 后端单元测试 runs-on: ubuntu-latest if: needs.detect-changes.outputs.backend == 'true' steps: - uses: actions/checkout@v4 - name: 安装 pnpm uses: pnpm/action-setup@v4 with: version: ${{ env.PNPM_VERSION }} - name: 设置 Node.js uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - name: 恢复依赖缓存 uses: actions/cache/restore@v4 with: key: test-deps-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} path: | node_modules backend/node_modules frontend/node_modules shared/node_modules shared/dist e2e/node_modules - name: 生成 Prisma Client run: pnpm --filter juhi-api run db:generate - name: 运行单元测试 run: pnpm --filter juhi-api run test:coverage env: NODE_ENV: test JWT_SECRET: test-jwt-secret JWT_REFRESH_SECRET: test-jwt-refresh-secret - name: 检查覆盖率阈值 run: | cd backend COVERAGE=$(cat coverage/coverage-summary.json | jq '.total.lines.pct') echo "当前覆盖率: $COVERAGE%" if (( $(echo "$COVERAGE < ${{ env.COVERAGE_THRESHOLD }}" | bc -l) )); then echo "❌ 覆盖率 $COVERAGE% 低于阈值 ${{ env.COVERAGE_THRESHOLD }}%" exit 1 fi echo "✅ 覆盖率检查通过" - name: 上传覆盖率报告 uses: actions/upload-artifact@v4 with: name: backend-unit-coverage path: backend/coverage/lcov.info retention-days: "7" - if: always() name: 上传测试结果 uses: actions/upload-artifact@v4 with: name: backend-unit-test-results path: backend/test-results/ retention-days: "7"
...
job_id
backend-unit-test
needs
["setup","detect-changes"]
runs_on
["ubuntu-latest"]
task_id
0
status
3
started
0
stopped
1773832747
created
1773831751
updated
1773832747
raw_concurrency
is_concurrency_evaluated
0
concurrency_group
concurrency_cancel
0
Delete
Cancel