-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from route06inc/improve-ci-biome
Use official Biome GitHub Action for CI and update Biome to latest version
- Loading branch information
Showing
5 changed files
with
130 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
|
@@ -9,15 +10,9 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v2 | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
|
||
- name: Check if codebase is up-to-date | ||
run: | | ||
bun run ci | ||
git diff --compact-summary --exit-code || \ | ||
(echo; echo "Unexpected git diff detected"; exit 1) | ||
- name: Setup Biome | ||
uses: biomejs/[email protected] | ||
with: | ||
version: 1.9.4 | ||
- name: Run Biome | ||
run: biome ci . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,7 @@ | |
"prebuild": "node prepare-font.js", | ||
"build": "next build", | ||
"start": "next start", | ||
"ci": "bunx @biomejs/biome ci", | ||
"check": "bunx @biomejs/biome check --write", | ||
"check": "bunx @biomejs/biome check --write .", | ||
"lint": "next lint" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
@@ -77,7 +76,7 @@ | |
"valibot": "0.37.0" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.8.3", | ||
"@biomejs/biome": "1.9.4", | ||
"@tailwindcss/typography": "0.5.15", | ||
"@types/node": "^22", | ||
"@types/react": "npm:types-react@rc", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,103 +1,103 @@ | ||
/** https://github.com/iandinwoodie/github-markdown-tailwindcss */ | ||
/* Additional vertical padding used by kbd tag. */ | ||
.py-05 { | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
} | ||
|
||
.markdown { | ||
@apply break-words text-base leading-normal text-[#FCFCFC]; | ||
@apply break-words text-base leading-normal text-[#FCFCFC]; | ||
} | ||
|
||
.markdown > * + * { | ||
@apply mb-4 mt-0; | ||
@apply mb-4 mt-0; | ||
} | ||
|
||
.markdown li + li { | ||
@apply mt-1; | ||
@apply mt-1; | ||
} | ||
|
||
.markdown li > p + p { | ||
@apply mt-6; | ||
@apply mt-6; | ||
} | ||
|
||
.markdown strong { | ||
@apply font-semibold; | ||
@apply font-semibold; | ||
} | ||
|
||
.markdown a { | ||
@apply font-semibold text-indigo-500; | ||
@apply font-semibold text-indigo-500; | ||
} | ||
|
||
.markdown strong a { | ||
@apply font-bold; | ||
@apply font-bold; | ||
} | ||
|
||
.markdown h1 { | ||
@apply mb-4 mt-6 border-b pb-2 text-3xl font-semibold leading-tight; | ||
@apply mb-4 mt-6 border-b pb-2 text-3xl font-semibold leading-tight; | ||
} | ||
|
||
.markdown h2 { | ||
@apply mb-4 mt-6 border-b pb-2 text-xl font-semibold leading-tight; | ||
@apply mb-4 mt-6 border-b pb-2 text-xl font-semibold leading-tight; | ||
} | ||
|
||
.markdown h3 { | ||
@apply mb-4 mt-6 text-lg font-semibold leading-snug; | ||
@apply mb-4 mt-6 text-lg font-semibold leading-snug; | ||
} | ||
|
||
.markdown h4 { | ||
@apply mb-4 mt-6 text-base font-semibold leading-none; | ||
@apply mb-4 mt-6 text-base font-semibold leading-none; | ||
} | ||
|
||
.markdown h5 { | ||
@apply mb-4 mt-6 text-sm font-semibold leading-tight; | ||
@apply mb-4 mt-6 text-sm font-semibold leading-tight; | ||
} | ||
|
||
.markdown h6 { | ||
@apply mb-4 mt-6 text-sm font-semibold leading-tight text-gray-600; | ||
@apply mb-4 mt-6 text-sm font-semibold leading-tight text-gray-600; | ||
} | ||
|
||
.markdown blockquote { | ||
@apply border-l-4 border-gray-300 pl-4 pr-4 text-base text-gray-600; | ||
@apply border-l-4 border-gray-300 pl-4 pr-4 text-base text-gray-600; | ||
} | ||
|
||
.markdown code { | ||
@apply py-05 inline rounded bg-gray-200 px-1 font-mono text-sm; | ||
@apply py-05 inline rounded bg-gray-200 px-1 font-mono text-sm; | ||
} | ||
|
||
.markdown pre { | ||
@apply rounded bg-gray-100 p-4; | ||
@apply rounded bg-gray-100 p-4; | ||
} | ||
|
||
.markdown pre code { | ||
@apply block overflow-visible rounded-none bg-transparent p-0; | ||
@apply block overflow-visible rounded-none bg-transparent p-0; | ||
} | ||
|
||
.markdown ul { | ||
@apply list-disc pl-8 text-base; | ||
@apply list-disc pl-8 text-base; | ||
} | ||
|
||
.markdown ol { | ||
@apply list-decimal pl-8 text-base; | ||
@apply list-decimal pl-8 text-base; | ||
} | ||
|
||
.markdown kbd { | ||
@apply py-05 inline-block rounded border px-1 align-middle font-mono text-xs font-normal shadow; | ||
@apply py-05 inline-block rounded border px-1 align-middle font-mono text-xs font-normal shadow; | ||
} | ||
|
||
.markdown table { | ||
@apply border-gray-600 text-base; | ||
@apply border-gray-600 text-base; | ||
} | ||
|
||
.markdown th { | ||
@apply border px-3 py-1; | ||
@apply border px-3 py-1; | ||
} | ||
|
||
.markdown td { | ||
@apply border px-3 py-1; | ||
@apply border px-3 py-1; | ||
} | ||
|
||
/* Override pygments style background color. */ | ||
.markdown .highlight pre { | ||
@apply bg-gray-100 !important; | ||
@apply bg-gray-100 !important; | ||
} |