Skip to content

Commit bb96db1

Browse files
committed
fix: adjust ci
1 parent fcfcbe9 commit bb96db1

17 files changed

Lines changed: 5686 additions & 5641 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Install Bun
15+
uses: oven-sh/setup-bun@v1
16+
17+
- name: Install dependencies
18+
run: bun install
19+
20+
- name: Run tests
21+
run: bun run build

.github/workflows/check.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
check:
7+
name: Check
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Install Bun
15+
uses: oven-sh/setup-bun@v1
16+
17+
- name: Install dependencies
18+
run: bun install
19+
20+
- name: Run tests
21+
run: bun run ci

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI Tests
1+
name: Tests
22

33
on: [push, pull_request]
44

biome.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
},
88
"files": {
99
"ignoreUnknown": false,
10-
"ignore": []
10+
"ignore": ["./dist"],
11+
"include": ["./dist/index.d.ts"]
1112
},
1213
"formatter": {
1314
"enabled": true,

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"test": "vitest",
2020
"test:edge-browser": "vitest --browser=edge",
2121
"test:chrome-browser": "vitest --browser=chrome",
22-
"test:safari-browser": "vitest --browser=safari",
22+
"test:safari-browser": "vitest --browser=safari --browser.headless=false",
2323
"test:firefox-browser": "vitest --browser=firefox",
24-
"lint": "biome lint --write .",
24+
"check": "biome check --write .",
2525
"prebuild": "bun run build:cities",
26-
"build": "bun ./scripts/build.ts && biome lint --write ./dist/index.d.ts",
27-
"build:cities": "bun ./scripts/cities.ts && biome format --write ./src/_internals/cities.ts",
26+
"build": "bun ./scripts/build.ts && biome check --write ./dist/index.d.ts",
27+
"build:cities": "bun ./scripts/cities.ts && biome check --write ./src/_internals/cities.ts",
2828
"prepublishOnly": "bun run build",
29-
"format": "biome format --write ."
29+
"ci": "biome ci"
3030
},
3131
"publishConfig": {
3232
"access": "public"

scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { type BuildConfig, build } from "bun";
12
import dts from "bun-plugin-dts";
2-
import { build, type BuildConfig } from "bun";
33

44
type CustomBuildConfig = Omit<BuildConfig, "naming"> & {
55
naming: string;

scripts/cities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { write } from "bun";
21
import { resolve } from "node:path";
2+
import { write } from "bun";
33

44
type City = {
55
id: number;

0 commit comments

Comments
 (0)