dfb91781aa
CI / lint (pull_request) Successful in 14s
CI / typecheck (pull_request) Successful in 26s
CI / security (pull_request) Successful in 21s
CI / quality (pull_request) Successful in 15s
CI / integration_tests (pull_request) Successful in 4m10s
CI / build (pull_request) Successful in 16s
CI / unit_tests (pull_request) Successful in 8m23s
CI / docker (pull_request) Successful in 39s
CI / coverage (pull_request) Successful in 6m21s
CI / lint (push) Waiting to run
CI / typecheck (push) Waiting to run
CI / security (push) Waiting to run
CI / quality (push) Waiting to run
CI / unit_tests (push) Waiting to run
CI / integration_tests (push) Waiting to run
CI / coverage (push) Blocked by required conditions
CI / build (push) Waiting to run
CI / docker (push) Blocked by required conditions
30 lines
766 B
YAML
30 lines
766 B
YAML
# Example: Wrapped validation
|
|
# Wraps an existing tool and transforms its output into a pass/fail result.
|
|
|
|
name: qa/lint-check
|
|
description: Validate that linting passes by wrapping the lint tool
|
|
wraps: devops/run-linter
|
|
mode: required
|
|
transform: |
|
|
def transform(result):
|
|
errors = result.get("errors", [])
|
|
passed = len(errors) == 0
|
|
return {
|
|
"passed": passed,
|
|
"data": {"error_count": len(errors), "errors": errors[:5]},
|
|
"message": f"{len(errors)} lint errors found" if errors else "No lint errors"
|
|
}
|
|
|
|
argument_mapping:
|
|
strict: true
|
|
config_path: .eslintrc.json
|
|
|
|
resource_slots:
|
|
- name: source_code
|
|
resource_type: git-checkout
|
|
access: read_only
|
|
description: Source code to lint
|
|
binding: contextual
|
|
|
|
timeout: 180
|