Skip to content

chore(ci): skip build workflow for non-code changes#71

Merged
CalvinAllen merged 1 commit into
mainfrom
chore/skip-build-for-docs
Dec 9, 2025
Merged

chore(ci): skip build workflow for non-code changes#71
CalvinAllen merged 1 commit into
mainfrom
chore/skip-build-for-docs

Conversation

@CalvinAllen

Copy link
Copy Markdown
Contributor

Summary

Skip the build workflow (Go linting, building, testing) when only non-code files change.

Files that skip build:

  • Documentation (*.md, docs/)
  • Assets (assets/, schemas/)
  • GitHub templates (.github/ISSUE_TEMPLATE/)
  • IDE/editor config (.idea/, .claude/)
  • Git config (.gitignore)
  • Commit lint config (.commitlintrc.yml, package.json, package-lock.json)
  • LICENSE

Files that still trigger build:

  • Go source code (*.go)
  • Go dependencies (go.mod, go.sum)
  • Lint config (.golangci.yml)
  • Install scripts (install.sh, install.ps1)
  • Workflow files (.github/workflows/*.yml)

Note: PR title and commit message linting still runs via commit-lint.yml for all PRs.

Test plan

  • Create a docs-only PR and verify build workflow is skipped
  • Create a code PR and verify build workflow runs

@CalvinAllen CalvinAllen force-pushed the chore/skip-build-for-docs branch from 980d219 to 803e905 Compare December 9, 2025 22:25
Skip linting, building, and testing when only non-code files change:
- Documentation (*.md, docs/)
- Assets (assets/, schemas/)
- GitHub templates (.github/ISSUE_TEMPLATE/)
- IDE/editor config (.idea/, .claude/)
- Git config (.gitignore)
- Commit lint config (.commitlintrc.yml, package.json, package-lock.json)
- Install scripts (install.sh, install.ps1)
- LICENSE

Add new script-lint.yml workflow that runs ShellCheck and PSScriptAnalyzer
when install scripts change.

Commit and PR title linting still runs via commit-lint.yml.
@CalvinAllen CalvinAllen force-pushed the chore/skip-build-for-docs branch from 803e905 to 37b02e8 Compare December 9, 2025 22:28
@CalvinAllen CalvinAllen merged commit 42b169d into main Dec 9, 2025
9 checks passed
@CalvinAllen CalvinAllen deleted the chore/skip-build-for-docs branch December 9, 2025 22:30
@CalvinAllen

Copy link
Copy Markdown
Contributor Author

/skip-changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant