ability.yaml 893 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: test-suite
  2. description: Run test suite with validation
  3. triggers:
  4. keywords:
  5. - "run tests"
  6. - "test the code"
  7. - "check tests"
  8. inputs:
  9. coverage:
  10. type: boolean
  11. required: false
  12. default: false
  13. description: "Enable coverage reporting"
  14. steps:
  15. - id: lint
  16. type: script
  17. description: Run linter
  18. run: echo "Running lint..." && sleep 1 && echo "Lint passed"
  19. validation:
  20. exit_code: 0
  21. - id: typecheck
  22. type: script
  23. description: Run type checker
  24. run: echo "Running typecheck..." && sleep 1 && echo "Types OK"
  25. needs: [lint]
  26. validation:
  27. exit_code: 0
  28. - id: test
  29. type: script
  30. description: Run tests
  31. run: echo "Running tests..." && sleep 2 && echo "All 42 tests passed"
  32. needs: [typecheck]
  33. validation:
  34. exit_code: 0
  35. stdout_contains: "passed"
  36. settings:
  37. timeout: 10m
  38. enforcement: strict