Skip to content

Commit 9fb12cd

Browse files
authored
chore: enhance CI workflow with better code checks (#9)
1 parent 5491116 commit 9fb12cd

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
format:
13+
biome:
1414
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Checkout your repository using git
1717
uses: actions/checkout@v4
18-
- name: Setup Node and Bun
18+
- name: Setup toolchain
1919
uses: jdx/mise-action@v2
2020
- name: Install dependencies
2121
run: bun install --frozen-lockfile
22-
- name: Format
23-
run: bun run format
22+
- name: Check using Biome
23+
run: bun run ci
2424

25-
lint:
25+
tsc:
2626
runs-on: ubuntu-24.04
2727
steps:
2828
- name: Checkout your repository using git
2929
uses: actions/checkout@v4
30-
- name: Setup Node and Bun
30+
- name: Setup toolchain
3131
uses: jdx/mise-action@v2
3232
- name: Install dependencies
3333
run: bun install --frozen-lockfile
34-
- name: Lint
35-
run: bun run lint
34+
- name: Check using tsc
35+
run: bun run tsc
3636

3737
test:
3838
runs-on: ubuntu-24.04
3939
steps:
4040
- name: Checkout your repository using git
4141
uses: actions/checkout@v4
42-
- name: Setup Node and Bun
42+
- name: Setup toolchain
4343
uses: jdx/mise-action@v2
4444
- name: Install dependencies
4545
run: bun install --frozen-lockfile
@@ -51,7 +51,7 @@ jobs:
5151
steps:
5252
- name: Checkout your repository using git
5353
uses: actions/checkout@v4
54-
- name: Setup Node and Bun
54+
- name: Setup toolchain
5555
uses: jdx/mise-action@v2
5656
- name: Install dependencies
5757
run: bun install --frozen-lockfile

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
lib/
3+
tsconfig.tsbuildinfo

bun.lockb

-342 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"lint:apply": "biome lint --apply .",
2222
"check": "biome check .",
2323
"check:write": "biome check --write .",
24+
"ci": "biome ci .",
2425
"test": "vitest",
2526
"update-fixtures": "bun ./test/update-fixtures.ts && biome check --write ./test/fixtures"
2627
},
@@ -39,7 +40,6 @@
3940
"esbuild": "^0.20.2",
4041
"textlint-scripts": "^14.0.4",
4142
"textlint-tester": "^14.0.4",
42-
"tsc": "^2.0.4",
4343
"typescript": "^5.4.3",
4444
"vitest": "^1.4.0"
4545
}

0 commit comments

Comments
 (0)