Paste a GitHub Actions workflow file to catch common mistakes before pushing.
jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: npm ci - run: npm testβ>
What it checks
- Missing
on:,jobs:,runs-on, orsteps - Invalid event triggers
- Non-standard runners
- Actions without version pins (
@v4) - Actions pinned to
@mainor@master - Tab characters in YAML
- Missing
npm cibeforenpm test - Missing
setup-nodewhennode-versionis used
Limitations
This is a structural linter β it catches the most common workflow mistakes but doesnβt validate every YAML edge case or action input. For full validation, push to a branch and check the Actions tab.