From a02979fdf0a78e699416a6bbf7bb35eaf3b4fb12 Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 26 Jun 2026 15:22:36 +0800 Subject: [PATCH] chore: use bun --- .github/workflows/ci.yml | 26 +++++++++----------------- .github/workflows/coverage.yml | 5 ----- 2 files changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38b6e6ce..b18cbc90 100644 --- a/.github/workflows/ci.yml +++ b/.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: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 38c9d0ef..237b68d0 100644 --- a/.github/workflows/coverage.yml +++ b/.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