Skip to content

Commit f450937

Browse files
committed
separate build and check
1 parent dcb11f2 commit f450937

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/check.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Check
22
on: pull_request
33
jobs:
4-
build-type-check:
4+
check:
55
name: Check
66
runs-on: ubuntu-latest
77
steps:
@@ -11,6 +11,15 @@ jobs:
1111
bun-version: "1.2.4"
1212
- run: bun install --frozen-lockfile
1313
- run: bun check
14+
build:
15+
name: Build
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: oven-sh/setup-bun@v2
20+
with:
21+
bun-version: "1.2.4"
22+
- run: bun install --frozen-lockfile
1423
- uses: actions/cache@v4
1524
with:
1625
key: ${{ runner.os }}-astro-build

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
1212
"prepare": "lefthook install && bun sync",
1313
"sync": "astro sync",
1414
"dev": "astro dev",
15-
"check": "biome lint && astro check",
15+
"check": "biome check . && astro check",
1616
"fix": "biome lint . --fix --unsafe",
1717
"build": "astro build",
18-
"preview": "astro preview",
19-
"lint": "eslint .",
20-
"lint:fix": "eslint . --fix",
21-
"type-check": "tsc --noEmit"
18+
"preview": "astro preview"
2219
},
2320
"dependencies": {
2421
"@astrojs/mdx": "^4.1.0",

0 commit comments

Comments
 (0)