Skip to content

Commit

Permalink
ci(biome): Format and lint with Biome
Browse files Browse the repository at this point in the history
It keeps the code clean and readable.
  • Loading branch information
5ouma committed Nov 7, 2024
1 parent c574c39 commit cda4b83
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ on:
- .github/workflows/ci.yml

jobs:
type-check:
name: 🔍 Type Check
astro-check:
name: 🚀 Astro Check
runs-on: Ubuntu-Latest

steps:
Expand All @@ -28,8 +28,22 @@ jobs:
- name: 🍞 Setup Bun with Cache
uses: ./.github/actions/setup-bun-with-cache

- name: 🔍 Type Check
run: bun run check
- name: 🚀 Astro Check
run: bun run check:astro

biome-check:
name: 🏞️ Biome Check
runs-on: Ubuntu-Latest

steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🍞 Setup Bun with Cache
uses: ./.github/actions/setup-bun-with-cache

- name: 🏞️ Biome Check
run: bun run check:biome

build-check:
name: 🛠️ Build Check
Expand Down
9 changes: 9 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": { "indentStyle": "space" }
}
Binary file modified bun.lockb
Binary file not shown.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"check": "astro check"
"check:astro": "astro check",
"check:biome": "biome check"
},
"dependencies": {
"astro": "4.16.10",
"typescript": "5.6.3"
},
"devDependencies": {
"@astrojs/check": "0.9.4"
"@astrojs/check": "0.9.4",
"@biomejs/biome": "1.9.4"
}
}

0 comments on commit cda4b83

Please sign in to comment.