-
Notifications
You must be signed in to change notification settings - Fork 0
Harden content and script maintenance safeguards #62
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
3a2b721
28e7a14
61bbb8a
403eb83
402e8b9
dcd43c1
7c54164
7319206
2e63a53
819e50e
071c9fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: Content Rules Checks | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: ["main"] | ||
| paths: | ||
| - "history.md" | ||
| - "_research/index.md" | ||
| - "CLAUDE.md" | ||
| - "README.md" | ||
| - "scripts/validate-content-rules.sh" | ||
| paths-ignore: | ||
| - ".*/**/*.md" | ||
| - "**/.*/**/*.md" | ||
| push: | ||
|
Comment on lines
+6
to
+15
|
||
| branches: ["main"] | ||
| paths: | ||
| - "history.md" | ||
| - "_research/index.md" | ||
| - "CLAUDE.md" | ||
| - "README.md" | ||
| - "scripts/validate-content-rules.sh" | ||
VatsalSy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| paths-ignore: | ||
| - ".*/**/*.md" | ||
| - "**/.*/**/*.md" | ||
|
|
||
| jobs: | ||
| content-rules: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Validate history and research content rules | ||
| run: bash scripts/validate-content-rules.sh | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Teaching Content Checks | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: ["main"] | ||
| paths: | ||
| - "_teaching/**/*.md" | ||
| - ".markdownlint-cli2.jsonc" | ||
| - ".prettierrc.json" | ||
| - "package.json" | ||
| - "package-lock.json" | ||
| push: | ||
| branches: ["main"] | ||
| paths: | ||
| - "_teaching/**/*.md" | ||
| - ".markdownlint-cli2.jsonc" | ||
| - ".prettierrc.json" | ||
| - "package.json" | ||
| - "package-lock.json" | ||
|
|
||
| jobs: | ||
| markdown-quality: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| cache: "npm" | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Run markdownlint for teaching content | ||
| run: npx markdownlint-cli2 --config .markdownlint-cli2.jsonc "_teaching/**/*.md" | ||
|
|
||
| - name: Check prettier formatting for teaching content | ||
| run: npx prettier --check "_teaching/**/*.md" |
Uh oh!
There was an error while loading. Please reload this page.