Browse Source

chore: use bun

pull/11888/head
ian 3 months ago
parent
commit
a02979fdf0
  1. 26
      .github/workflows/ci.yml
  2. 5
      .github/workflows/coverage.yml

26
.github/workflows/ci.yml

@ -10,24 +10,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: oven-sh/setup-bun@v2
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run biome:lint
- run: npx antd lint ./src
bun-version: 1.3.14
- run: bun install
- run: bun run biome:lint
- run: bun run antd lint ./src
tsc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run tsc
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run tsc
- run: bun run tsc
build:
runs-on: ${{ matrix.os }}
@ -37,11 +34,6 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node_version }}
cache: npm
- run: echo ${{github.ref}}
- uses: utooland/setup-utoo@e63ce40ce5f7e9838c666a57479344e91c3a9795 # v1
with:

5
.github/workflows/coverage.yml

@ -10,11 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Use Node.js 22
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
- run: echo ${{github.ref}}
- uses: utooland/setup-utoo@e63ce40ce5f7e9838c666a57479344e91c3a9795 # v1
- run: ut

Loading…
Cancel
Save