Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
solidity: ${{ steps.filter.outputs.solidity }}
typescript: ${{ steps.filter.outputs.typescript }}
content: ${{ steps.filter.outputs.content }}
llms: ${{ steps.filter.outputs.llms }}
any_non_solidity: ${{ steps.filter.outputs.any_non_solidity }}
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -53,6 +54,21 @@ jobs:
- 'lychee.toml'
- 'vercel.json'
- 'src/scripts/link-check/**'
llms:
- 'src/features/**'
- 'src/config/sidebar*'
- 'src/config/sidebar/**'
- 'src/config/llms.ts'
- 'src/config/sunset.ts'
- 'src/config/solutions/**'
- 'src/utils/solutionPages.ts'
- 'src/scripts/generate-llms.ts'
- 'src/scripts/validate-llms.ts'
- 'src/scripts/component-coverage-baseline.json'
- '.husky/pre-commit'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/test.yml'
any_non_solidity:
- '**'
- '!public/samples/**/*.sol'
Expand Down Expand Up @@ -318,7 +334,7 @@ jobs:
# Job 6: Validate LLM files are present and well-formed
validate-llms:
needs: [setup, changes]
if: needs.changes.outputs.content == 'true'
if: needs.changes.outputs.content == 'true' || needs.changes.outputs.llms == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down Expand Up @@ -348,14 +364,25 @@ jobs:
- name: Regenerate LLM files
run: npm run generate:llms

- name: Upload component coverage report
if: always()
uses: actions/upload-artifact@v7
with:
name: component-coverage-report
path: reports/component-coverage.json
retention-days: 30
if-no-files-found: warn

- name: Check LLM files are up-to-date
if: ${{ !cancelled() }}
run: |
if ! git diff --exit-code 'src/content/**/llms-full*.txt'; then
echo "LLM files are out of date. Run 'npm run generate:llms' and commit the result."
exit 1
fi

- name: Validate LLM files
if: ${{ !cancelled() }}
run: npm run check:llms

- name: Check Markdown fidelity
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dist/
node_modules/

temp/
reports/
/reports/

# logs
npm-debug.log*
Expand Down Expand Up @@ -49,4 +49,4 @@ selectors*.yml.backup
selectors.yml.backup

# Test coverage
coverage/
coverage/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ data-source
typechain-types
public/snippets
public/search-index.json
public/reports/component-coverage.json
vercel.json


Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"quality-check:full": "npm run typecheck && npm run lint && npm run audit:dead-code",
"generate:llms": "tsx --require tsconfig-paths/register src/scripts/generate-llms.ts",
"check:llms": "tsx --require tsconfig-paths/register src/scripts/validate-llms.ts",
"check:markdown-fidelity": "tsx --require tsconfig-paths/register src/scripts/check-markdown-fidelity.ts"
"check:markdown-fidelity": "tsx --require tsconfig-paths/register src/scripts/check-markdown-fidelity.ts",
"report:component-coverage": "tsx --require tsconfig-paths/register src/scripts/generate-llms.ts --coverage-only"
},
"dependencies": {
"@11ty/eleventy-fetch": "^5.1.3",
Expand Down
Loading
Loading