Bilibili-Evolved/.github-json/data/workflows/pull-request-check.json
2025-02-11 23:56:12 +08:00

46 lines
985 B
JSON

{
"name": "Pull Request Check",
"on": [
"pull_request"
],
"jobs": {
"check": {
"runs-on": "ubuntu-latest",
"steps": [
{
"uses": "actions/checkout@v3",
"with": {
"ref": "${{ github.event.pull_request.head.sha }}"
}
},
{
"name": "Install dependencies",
"uses": "pnpm/action-setup@v4",
"with": {
"run_install": true
}
},
{
"name": "Type check",
"run": "pnpm run type"
},
{
"name": "ESLint check",
"run": "pnpm run lint-check"
},
{
"name": "Build core",
"run": "pnpm run build-core"
},
{
"name": "Build features",
"run": "cd registry\npnpm install\ncd ../\npnpm run build-features\n"
},
{
"name": "Log",
"run": "echo Check complete."
}
]
}
}
}