Skip to content

Commit 713dbe6

Browse files
committed
chore: publish 5.0
1 parent 9e97fb4 commit 713dbe6

16 files changed

Lines changed: 466 additions & 11835 deletions

.github/workflows/main.yml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,43 @@ name: CI
22
on: [push]
33
jobs:
44
build:
5-
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
5+
name: Lint, test, and build (Bun)
66

7-
runs-on: ${{ matrix.os }}
8-
strategy:
9-
matrix:
10-
node: ["22.x"]
11-
os: [ubuntu-latest]
7+
runs-on: ubuntu-latest
128

139
steps:
1410
- name: Checkout repo
1511
uses: actions/checkout@v4
1612

17-
- name: Use Node ${{ matrix.node }}
18-
uses: actions/setup-node@v4
13+
- uses: oven-sh/setup-bun@v2
1914
with:
20-
node-version: ${{ matrix.node }}
21-
22-
- name: Install PNPM
23-
uses: pnpm/action-setup@v4.1.0
15+
bun-version: '1.3.13'
2416

25-
- name: Install deps and build (with cache)
26-
run: pnpm install --no-frozen-lockfile
17+
- name: Install dependencies
18+
run: bun install --frozen-lockfile
2719

2820
- name: Lint
29-
run: pnpm lint
21+
run: bun run lint
3022

3123
- name: Test
32-
run: pnpm test -- --ci --coverage --maxWorkers=2
24+
run: bun run test
3325

3426
- name: Build
35-
run: pnpm build
27+
run: bun run build
3628
coverage:
3729
name: coverage
3830
runs-on: ubuntu-latest
3931
steps:
4032
- uses: actions/checkout@v4
41-
- uses: actions/setup-node@v4
33+
- uses: oven-sh/setup-bun@v2
4234
with:
43-
node-version: "22"
44-
- uses: pnpm/action-setup@v4.1.0
45-
- name: Install deps and build (with cache)
46-
run: pnpm install --no-frozen-lockfile
47-
- run: pnpm test
35+
bun-version: '1.3.13'
36+
- name: Install dependencies
37+
run: bun install --frozen-lockfile
38+
- run: bun run test:coverage
4839
- uses: paambaati/codeclimate-action@v9.0.0
4940
env:
5041
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5142
with:
5243
debug: true
44+
coverageLocations: '${{ github.workspace }}/coverage/lcov.info:lcov'

.github/workflows/publish.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ on:
77

88
jobs:
99
build:
10-
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
10+
name: Lint, test, and build (Bun)
1111

1212
if: startsWith(github.head_ref, 'renovate/')
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
node: ["22.x"]
17-
os: [ubuntu-latest]
13+
runs-on: ubuntu-latest
1814

1915
steps:
2016
- uses: dorny/paths-filter@v3
@@ -24,7 +20,9 @@ jobs:
2420
src:
2521
- 'src/**'
2622
- 'package.json'
27-
- 'pnpm-lock.yaml'
23+
- 'bun.lock'
24+
- 'bun.lockb'
25+
2826
- name: Checkout repo
2927
if: steps.changes.outputs.src == 'true'
3028
uses: actions/checkout@v4
@@ -34,38 +32,31 @@ jobs:
3432
git config user.name "${{ secrets.USER_NAME }}"
3533
git config user.email "${{ secrets.USER_EMAIL }}"
3634
37-
- name: Use Node ${{ matrix.node }}
38-
if: steps.changes.outputs.src == 'true'
39-
uses: actions/setup-node@v4
35+
- if: steps.changes.outputs.src == 'true'
36+
uses: oven-sh/setup-bun@v2
4037
with:
41-
node-version: ${{ matrix.node }}
42-
43-
- name: Install PNPM
44-
if: steps.changes.outputs.src == 'true'
45-
uses: pnpm/action-setup@v4.1.0
38+
bun-version: '1.3.13'
4639

47-
- name: Install deps and build (with cache)
40+
- name: Install dependencies
4841
if: steps.changes.outputs.src == 'true'
49-
run: pnpm install --no-frozen-lockfile
42+
run: bun install --frozen-lockfile
5043

5144
- name: Lint
5245
if: steps.changes.outputs.src == 'true'
53-
run: pnpm lint
46+
run: bun run lint
5447

5548
- name: Test
5649
if: steps.changes.outputs.src == 'true'
57-
run: pnpm test -- --ci --coverage --maxWorkers=2
50+
run: bun run test
5851

5952
- name: Build
6053
if: steps.changes.outputs.src == 'true'
61-
run: pnpm build
54+
run: bun run build
6255

6356
- name: Bump version
6457
if: steps.changes.outputs.src == 'true'
6558
uses: qzb/standard-version-action@v1.0.13
6659

67-
68-
6960
- if: steps.changes.outputs.src == 'true'
7061
run: |
7162
git config --global user.name "${{ secrets.USER_NAME }}"
@@ -76,5 +67,3 @@ jobs:
7667
uses: JS-DevTools/npm-publish@v3
7768
with:
7869
token: ${{ secrets.NPM_TOKEN }}
79-
80-

.oxfmtrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"semi": true,
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"printWidth": 80,
7+
"endOfLine": "lf",
8+
"experimentalSortImports": false
9+
}

.oxlintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "import"],
4+
"env": {
5+
"browser": true
6+
},
7+
"rules": {
8+
"@typescript-eslint/no-unused-vars": [
9+
"warn",
10+
{
11+
"argsIgnorePattern": "^_",
12+
"varsIgnorePattern": "^_",
13+
"ignoreRestSiblings": true
14+
}
15+
],
16+
"import/no-cycle": "warn"
17+
}
18+
}

.prettierrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)