From 78a5a94b1310671a946fce37703e7e53ae68e65e Mon Sep 17 00:00:00 2001 From: Arvin Xu Date: Tue, 12 Sep 2023 22:30:24 +0800 Subject: [PATCH] chore: use bun in test CI and vercel CD (#192) * :wrench: chore: try bun test ci * :wrench: chore: update installCommand on vercel --- .bunfig.toml | 3 +++ .github/workflows/test.yml | 17 +++++------------ vercel.json | 4 ++-- 3 files changed, 10 insertions(+), 14 deletions(-) create mode 100644 .bunfig.toml diff --git a/.bunfig.toml b/.bunfig.toml new file mode 100644 index 000000000000..d6bb75b00762 --- /dev/null +++ b/.bunfig.toml @@ -0,0 +1,3 @@ +[install.lockfile] + +save = false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b60aad7f9fbc..c91f06f2e845 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,24 +7,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - - - name: Setup Node.js environment - uses: actions/setup-node@v3 - with: - node-version: '18' + - name: Install bun + uses: oven-sh/setup-bun@v1 - name: Install deps - run: pnpm install + run: bun i - name: lint - run: pnpm run lint + run: bun run lint - name: Test and coverage - run: pnpm run test:coverage + run: bun run test:coverage - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 diff --git a/vercel.json b/vercel.json index 52de503e73b5..d4f8d59f0ad7 100644 --- a/vercel.json +++ b/vercel.json @@ -1,3 +1,3 @@ { - "installCommand": "pnpm i" -} \ No newline at end of file + "installCommand": "pnpm i -g bun && bun i" +}