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 124 from action_run_job
id
124
run_id
48
repo_id
6
owner_id
5
commit_sha
a7c22fc0f5e2d113210bb58646dcdbf7381be245
is_fork_pull_request
0
name
单元测试 & 覆盖率
attempt
0
workflow_payload
name: 深度完整全面自动化测试 "on": push:
name: 深度完整全面自动化测试 "on": push: branches: [main, develop] pull_request: branches: [main, develop] schedule: # 每天凌晨 2 点运行完整测试 - cron: '0 2 * * *' env: NODE_VERSION: "18" PNPM_VERSION: "8" jobs: unit-tests: name: 单元测试 & 覆盖率 runs-on: ubuntu-latest steps: - name: Checkout 代码 uses: actions/checkout@v3 - name: 安装 pnpm uses: pnpm/action-setup@v2 with: version: ${{ env.PNPM_VERSION }} - name: 设置 Node.js uses: actions/setup-node@v3 with: cache: pnpm node-version: ${{ env.NODE_VERSION }} - name: 安装依赖 run: pnpm install --frozen-lockfile - name: 运行单元测试 run: cd backend && pnpm test:unit:coverage - name: 生成覆盖率报告 run: cd backend && pnpm test:coverage:json - name: 上传覆盖率到 Codecov uses: codecov/codecov-action@v3 with: files: ./backend/coverage/lcov.info flags: unittests name: unit-coverage - name: 检查覆盖率阈值 run: | cd backend COVERAGE=$(jq '.total.lines.pct' coverage/coverage.json) echo "当前覆盖率: $COVERAGE%" if (( $(echo "$COVERAGE < 85" | bc -l) )); then echo "❌ 覆盖率低于 85%" exit 1 fi echo "✅ 覆盖率达标" - if: always() name: 上传测试结果 uses: actions/upload-artifact@v3 with: name: unit-test-results path: backend/test-results/ - if: always() name: 上传覆盖率报告 uses: actions/upload-artifact@v3 with: name: unit-coverage-report path: backend/coverage/ timeout-minutes: "15"
...
job_id
unit-tests
needs
null
runs_on
["ubuntu-latest"]
task_id
0
status
3
started
0
stopped
1771862495
created
1771862412
updated
1771862495
raw_concurrency
NULL
is_concurrency_evaluated
NULL
concurrency_group
concurrency_cancel
0
Delete
Cancel