-
Notifications
You must be signed in to change notification settings - Fork 27
ci: keep the style-lint example out of the active workflows #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Copy-paste example: run the StyleKit linter on your own repository. | ||
| # | ||
| # This is documentation, not an active workflow. It lives here rather than in | ||
| # .github/workflows/ because every path in it is written for a consumer repo: | ||
| # it installs @stylekit/core from npm and lints `src/**/*.tsx`. StyleKit's own | ||
| # checkout has no `src/` directory, so as an active workflow it matched nothing, | ||
| # ran on any PR touching components/**, and failed every time on an action that | ||
| # could not load a linter. | ||
| # | ||
| # Wiring note: the inputs below belong to .github/actions/stylekit-lint, the | ||
| # action documented in .github/actions/stylekit-lint/README.md. The older | ||
| # .github/actions/lint reads `fail-on` instead of `fail-on-error` and resolves | ||
| # its linter from paths this repository does not have. | ||
| name: StyleKit Lint | ||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'src/**/*.tsx' | ||
| - 'src/**/*.jsx' | ||
| - 'components/**/*.tsx' | ||
| - 'components/**/*.jsx' | ||
|
|
||
| jobs: | ||
| stylekit-lint: | ||
| name: Check Style Compliance | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Run StyleKit Lint | ||
| uses: ./.github/actions/stylekit-lint | ||
| with: | ||
| style: neo-brutalist | ||
| files: 'src/**/*.tsx' | ||
| fail-on-error: 'true' | ||
|
Comment on lines
+27
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Use a published runnable lint entry point. This consumer example references a repository-local action that is absent from consumer checkouts. The action also runs 🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: AnxForever/stylekit
Length of output: 6893
🏁 Script executed:
Repository: AnxForever/stylekit
Length of output: 4980
🏁 Script executed:
Repository: AnxForever/stylekit
Length of output: 9973
🏁 Script executed:
Repository: AnxForever/stylekit
Length of output: 1113
🏁 Script executed:
Repository: AnxForever/stylekit
Length of output: 21585
Align the trigger paths with the
filesinput.When the action runs successfully, changes under
src/**/*.jsxorcomponents/**can trigger this workflow, butsrc/**/*.tsxexcludes those changed files from linting. Remove the unmatched trigger paths, or expandfilesto the intended scope.🤖 Prompt for AI Agents