Skip to content

Commit

Permalink
Merge pull request #47 from route06inc/improve-ci-biome
Browse files Browse the repository at this point in the history
Use official Biome GitHub Action for CI and update Biome to latest version
  • Loading branch information
toyamarinyon authored Oct 24, 2024
2 parents a96e9db + b258fa2 commit 930deb6
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 137 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
- push
- pull_request

jobs:
Expand All @@ -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 .
191 changes: 95 additions & 96 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,103 +3,102 @@
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;

--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;

--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;

--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;

--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;

--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;

--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;

--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 10% 3.9%;

--radius: 0.5rem;


--rosepine_base: 246 24% 17%;
--rosepine_surface: 248 24% 20%;
--rosepine_overlay: 248 21% 26%;
--rosepine_muted: 249 12% 47%;
--rosepine_subtle: 248 15% 61%;
--rosepine_text: 245 50% 91%;
--rosepine_love: 343 76% 68%;
--rosepine_gold: 35 88% 72%;
--rosepine_rose: 2 66% 75%;
--rosepine_pine: 197 48% 47%;
--rosepine_foam: 189 43% 73%;
--rosepine_iris: 267 57% 78%;
--rosepine_highlightLow: 245 22% 20%;
--rosepine_highlightMed: 247 16% 30%;
--rosepine_highlightHigh: 249 15% 38%;
}

.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;

--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;

--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;

--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;

--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;

--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;

--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;

--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;

--black_100: 234 91% 5%;
--black_80: 218 58% 21%;
--black_70: 222 21% 40%;
--black_50: 222 21% 40%;
--black_40: 207 12% 57%;
--black_30: 207 19% 77%;
--black_-30: 192 73% 84%;
--black_-50: 210 58% 71%;
--black_-70: 202 52% 46%;
--green: 142 100% 68%;

--white: 30 100% 98%;
}
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;

--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;

--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;

--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;

--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;

--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;

--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;

--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 10% 3.9%;

--radius: 0.5rem;

--rosepine_base: 246 24% 17%;
--rosepine_surface: 248 24% 20%;
--rosepine_overlay: 248 21% 26%;
--rosepine_muted: 249 12% 47%;
--rosepine_subtle: 248 15% 61%;
--rosepine_text: 245 50% 91%;
--rosepine_love: 343 76% 68%;
--rosepine_gold: 35 88% 72%;
--rosepine_rose: 2 66% 75%;
--rosepine_pine: 197 48% 47%;
--rosepine_foam: 189 43% 73%;
--rosepine_iris: 267 57% 78%;
--rosepine_highlightLow: 245 22% 20%;
--rosepine_highlightMed: 247 16% 30%;
--rosepine_highlightHigh: 249 15% 38%;
}

.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;

--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;

--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;

--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;

--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;

--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;

--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;

--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;

--black_100: 234 91% 5%;
--black_80: 218 58% 21%;
--black_70: 222 21% 40%;
--black_50: 222 21% 40%;
--black_40: 207 12% 57%;
--black_30: 207 19% 77%;
--black_-30: 192 73% 84%;
--black_-50: 210 58% 71%;
--black_-70: 202 52% 46%;
--green: 142 100% 68%;

--white: 30 100% 98%;
}
}

@layer base {
.mask-fill {
-webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0); /* 2つのマスクレイヤー */
-webkit-mask-clip: padding-box, border-box; /* レイヤーごとの描画領域の範囲 */
-webkit-mask-composite: destination-out; /* レイヤーが重なっていない領域を描画対象 */
}
.mask-fill {
-webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0); /* 2つのマスクレイヤー */
-webkit-mask-clip: padding-box, border-box; /* レイヤーごとの描画領域の範囲 */
-webkit-mask-composite: destination-out; /* レイヤーが重なっていない領域を描画対象 */
}
}
Binary file modified bun.lockb
Binary file not shown.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]",
Expand Down Expand Up @@ -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",
Expand Down
52 changes: 26 additions & 26 deletions services/agents/requests/components/markdown.css
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;
}

0 comments on commit 930deb6

Please sign in to comment.