Skip to content

Commit 5a6bfc0

Browse files
authored
chore: Update CI workflow to use biome ci command for code checks (#7)
1 parent 2c25074 commit 5a6bfc0

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
format:
12+
ci:
1313
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout your repository using git
@@ -18,20 +18,8 @@ jobs:
1818
uses: jdx/mise-action@v2
1919
- name: Install dependencies
2020
run: bun install --frozen-lockfile
21-
- name: Format
22-
run: bun run format:check
23-
24-
lint:
25-
runs-on: ubuntu-22.04
26-
steps:
27-
- name: Checkout your repository using git
28-
uses: actions/checkout@v4
29-
- name: Setup Node and Bun
30-
uses: jdx/mise-action@v2
31-
- name: Install dependencies
32-
run: bun install --frozen-lockfile
33-
- name: Lint
34-
run: bun run lint
21+
- name: Check using Biome
22+
run: bun run ci
3523

3624
test:
3725
runs-on: ubuntu-22.04

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"lint": "biome lint .",
2121
"lint:fix": "biome lint --apply .",
2222
"check": "biome check .",
23+
"check:fix": "biome check --apply .",
24+
"ci": "biome ci .",
2325
"test": "vitest"
2426
},
2527
"dependencies": {},

test/parsing.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// parse all fixture and should has
2-
import { test } from "@textlint/ast-tester";
31
import fs from "node:fs";
42
import path from "node:path";
3+
// parse all fixture and should has
4+
import { test } from "@textlint/ast-tester";
55
import { describe, expect, it } from "vitest";
66
import { parse } from "../src/parse";
77

0 commit comments

Comments
 (0)