Skip to content
Merged
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
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches: [main]
pull_request:

permissions:
contents: read
packages: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
# Installs @mind-studio/* from GitHub Packages via the committed .npmrc.
# GITHUB_TOKEN can read public packages in the same MIND-Studio org; if a
# cross-repo read is ever refused, set a NODE_AUTH_TOKEN secret to an org
# PAT with read:packages.
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN || secrets.GITHUB_TOKEN }}
# Lint + format gate (Biome). Fails on errors; warnings are the
# documented legacy baseline tracked in biome.json.
- run: npx biome ci .
- run: npx tsc --noEmit
- run: npm run test
- run: npm run build
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN || secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
npx lint-staged
6 changes: 6 additions & 0 deletions .husky/pre-push
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
# Fast confidence gate before code leaves this machine — mirrors CI's
# correctness checks. The slow `next build` is left to CI.
# Bypass in a pinch with `git push --no-verify`.
npm run lint || exit 1
npm run typecheck || exit 1
npm run test || exit 1
42 changes: 42 additions & 0 deletions biome.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.0/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": {
"ignoreUnknown": true,
"includes": [
"**",
"!**/public",
"!**/scripts",
"!**/next-env.d.ts",
"!**/package-lock.json",
"!**/*.css"
]
},
"formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2, "lineWidth": 100 },
"linter": {
"enabled": true,
"domains": { "next": "recommended", "react": "recommended" },
"rules": {
"recommended": true,
"correctness": { "useExhaustiveDependencies": "warn" },
"security": { "noDangerouslySetInnerHtml": "warn" },
"suspicious": {
"noImplicitAnyLet": "warn",
"useIterableCallbackReturn": "warn",
"noArrayIndexKey": "warn",
"noCommentText": "warn",
"noControlCharactersInRegex": "warn",
"noAssignInExpressions": "warn"
},
"a11y": {
"useButtonType": "warn",
"noLabelWithoutControl": "warn",
"noStaticElementInteractions": "warn",
"noSvgWithoutTitle": "warn",
"noAutofocus": "warn"
}
}
},

Check notice on line 39 in biome.json

View workflow job for this annotation

GitHub Actions/ build

deserialize

The use of the recommended field has been deprecated, and will removed in the next major version of Biome. Use preset instead.
"javascript": { "formatter": { "quoteStyle": "double" } },
"assist": { "enabled": true, "actions": { "source": { "organizeImports": "on" } } }
}
2 changes: 1 addition & 1 deletion infra/css/config.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,7 @@
" - PodResourcesGenerator.templateFolder -> seed NEW pods from the Mind pod template (Welcome README)",
"All filePaths point at locations populated by the docker-compose bind mount (./infra/css -> /css-host)."
],
"import": ["css:config/file.json"],
"import": ["css:config/file.json"],
"@graph": [
{
"@type": "Override",
Expand Down
Loading
Loading