Skip to content

feat(ci): add CI validation workflow for PRs and pushes#32

Open
digvijay-msft wants to merge 1 commit intoEmeaAppGbb:mainfrom
digvijay-msft:feat/ci-validation-workflow
Open

feat(ci): add CI validation workflow for PRs and pushes#32
digvijay-msft wants to merge 1 commit intoEmeaAppGbb:mainfrom
digvijay-msft:feat/ci-validation-workflow

Conversation

@digvijay-msft
Copy link
Copy Markdown
Contributor

Adds a GitHub Actions CI workflow that validates spec2cloud structure on every PR and push to main. Single job with 7 steps: directory validation, agent YAML front matter check, prompt non-empty check, broken internal link checker, ShellCheck linting, git executable bit verification, and a step summary report.

Adds .github/workflows/ci-validate.yml that runs on PRs and pushes
to main when agents, prompts, docs, or scripts change.

Jobs:
- validate-structure: checks required dirs, validates agent YAML
  front matter, validates prompt files are non-empty, writes a
  summary table to GitHub Actions step summary
- validate-docs: scans all markdown files for broken internal links
  using directory-relative resolution; excludes image refs and
  anchors; fails CI on broken links (::error, not ::warning)
- validate-scripts: runs ShellCheck (--severity=warning) directly
  (pre-installed on ubuntu-latest); checks git executable bit via
  git ls-files --stage instead of filesystem permissions

This prevents regressions like incorrect file counts, broken
cross-references, or shell script issues from being merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant