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 7920 from action_run_job
id
7920
run_id
6716
repo_id
6
owner_id
5
commit_sha
b7eb415d7a9689f1efec941bcb2dcd7d098e9c28
is_fork_pull_request
0
name
๐ ๅๅ ๆต่ฏ่ฆ็็้จ็ฆ
attempt
1
workflow_payload
name: Code Quality Gate "on": push:
name: Code Quality Gate "on": push: branches: [main, develop] pull_request: branches: [main, develop] workflow_dispatch: inputs: strict_mode: description: 'ไธฅๆ ผๆจกๅผ๏ผๅคฑ่ดฅๅณ้ปๆญขๅๅนถ๏ผ' required: false default: true type: boolean env: COVERAGE_THRESHOLD_E2E: "60" COVERAGE_THRESHOLD_INTEGRATION: "70" COVERAGE_THRESHOLD_UNIT: "80" NODE_VERSION: "20" PNPM_VERSION: "8" jobs: unit-test-coverage: name: "\U0001F4CA ๅๅ ๆต่ฏ่ฆ็็้จ็ฆ" runs-on: ubuntu-latest 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: cache: pnpm node-version: ${{ env.NODE_VERSION }} - name: ๅฎ่ฃ ไพ่ต run: pnpm install --frozen-lockfile - name: ็ๆ Prisma Client run: pnpm --filter juhi-api run db:generate - name: ่ฟ่กๅๅ ๆต่ฏๅนถ็ๆ่ฆ็็ run: | cd backend npm run test:coverage env: NODE_ENV: test JWT_SECRET: test-jwt-secret JWT_REFRESH_SECRET: test-jwt-refresh-secret - id: coverage-check name: ๆฃๆฅ่ฆ็็้ๅผ run: "cd backend\nif [ -f \"coverage/coverage-summary.json\" ]; then\n LINES_PCT=$(cat coverage/coverage-summary.json | jq '.total.lines.pct')\n STATEMENTS_PCT=$(cat coverage/coverage-summary.json | jq '.total.statements.pct')\n BRANCHES_PCT=$(cat coverage/coverage-summary.json | jq '.total.branches.pct')\n FUNCTIONS_PCT=$(cat coverage/coverage-summary.json | jq '.total.functions.pct')\n\n echo \"\U0001F4CA ่ฆ็็ๆฅๅ๏ผ\"\n echo \" - ่ก่ฆ็็: $LINES_PCT%\"\n echo \" - ่ฏญๅฅ่ฆ็็: $STATEMENTS_PCT%\"\n echo \" - ๅๆฏ่ฆ็็: $BRANCHES_PCT%\"\n echo \" - ๅฝๆฐ่ฆ็็: $FUNCTIONS_PCT%\"\n\n echo \"lines_pct=$LINES_PCT\" >> $GITHUB_OUTPUT\n echo \"statements_pct=$STATEMENTS_PCT\" >> $GITHUB_OUTPUT\n echo \"branches_pct=$BRANCHES_PCT\" >> $GITHUB_OUTPUT\n echo \"functions_pct=$FUNCTIONS_PCT\" >> $GITHUB_OUTPUT\n\n # ๆฃๆฅๆฏๅฆ่พพๅฐ้ๅผ๏ผไฝฟ็จ่ก่ฆ็็ไฝไธบไธป่ฆๆๆ ๏ผ\n if (( $(echo \"$LINES_PCT < ${{ env.COVERAGE_THRESHOLD_UNIT }}\" | bc -l) )); then\n echo \"โ ่ก่ฆ็็ $LINES_PCT% ไฝไบ้ๅผ ${{ env.COVERAGE_THRESHOLD_UNIT }}%\"\n echo \"coverage_pass=false\" >> $GITHUB_OUTPUT\n exit 1\n fi\n\n echo \"โ ่ฆ็็ๆฃๆฅ้่ฟ\"\n echo \"coverage_pass=true\" >> $GITHUB_OUTPUT\nelse\n echo \"โ ๏ธ ๆชๆพๅฐ่ฆ็็ๆฅๅ\"\n echo \"coverage_pass=false\" >> $GITHUB_OUTPUT\n exit 1\nfi\n" - if: always() name: ็ๆ่ฆ็็ๅพฝ็ซ run: | COVERAGE="${{ steps.coverage-check.outputs.lines_pct }}" if [ -z "$COVERAGE" ]; then COVERAGE="0" fi # ็กฎๅฎ้ข่ฒ if (( $(echo "$COVERAGE >= 80" | bc -l) )); then COLOR="brightgreen" elif (( $(echo "$COVERAGE >= 60" | bc -l) )); then COLOR="yellow" else COLOR="red" fi echo "Coverage: $COVERAGE% ($COLOR)" - if: always() name: ไธไผ ่ฆ็็ๆฅๅ uses: actions/upload-artifact@v4 with: name: unit-test-coverage path: | backend/coverage/ backend/test-results/ retention-days: "14" - if: github.event_name == 'pull_request' name: ่ฏ่ฎบ PR ่ฆ็็ uses: actions/github-script@v7 with: script: "const coverage = '${{ steps.coverage-check.outputs.lines_pct }}';\nconst threshold = '${{ env.COVERAGE_THRESHOLD_UNIT }}';\nconst passed = '${{ steps.coverage-check.outputs.coverage_pass }}' === 'true';\n\nconst emoji = passed ? 'โ ' : 'โ';\nconst status = passed ? '้่ฟ' : 'ๆช้่ฟ';\n\nconst body = [\n `## ${emoji} ๅๅ ๆต่ฏ่ฆ็็ๆฅๅ`,\n '',\n '| ๆๆ | ๅฝๅๅผ | ้ๅผ | ็ถๆ |',\n '|------|--------|------|------|',\n `| ่ก่ฆ็็ | ${coverage}% | ${threshold}% | ${status} |`,\n `| ่ฏญๅฅ่ฆ็็ | ${{ steps.coverage-check.outputs.statements_pct }}% | - | - |`,\n `| ๅๆฏ่ฆ็็ | ${{ steps.coverage-check.outputs.branches_pct }}% | - | - |`,\n `| ๅฝๆฐ่ฆ็็ | ${{ steps.coverage-check.outputs.functions_pct }}% | - | - |`,\n '',\n passed ? '\U0001F389 ๆญๅ๏ผๆต่ฏ่ฆ็็่พพๆ ใ' : 'โ ๏ธ ่ฏทๅขๅ ๆต่ฏ็จไพไปฅๆ้ซ่ฆ็็ใ'\n].join('\\n');\n\ngithub.rest.issues.createComment({\n issue_number: context.issue.number,\n owner: context.repo.owner,\n repo: context.repo.repo,\n body: body\n});\n" timeout-minutes: "30"
...
job_id
unit-test-coverage
needs
null
runs_on
["ubuntu-latest"]
task_id
6788
status
2
started
1773833185
stopped
1773833203
created
1773832746
updated
1773833203
raw_concurrency
is_concurrency_evaluated
0
concurrency_group
concurrency_cancel
0
Delete
Cancel