ci: simplify workflows

This commit is contained in:
Kevin Deng 2026-01-21 18:35:24 +08:00
parent f6ab6a968a
commit d9d2a31c02
No known key found for this signature in database
2 changed files with 4 additions and 30 deletions

View File

@ -22,28 +22,14 @@ jobs:
unit-test-bun:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- name: Setup node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: lts/*
cache: pnpm
- name: Setup JS
uses: sxzz/workflows/setup-js@v1
- name: Setup Bun
uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2
with:
bun-version: latest
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build

View File

@ -13,20 +13,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- name: Set node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: lts/*
cache: pnpm
- run: pnpm i
- name: Setup JS
uses: sxzz/workflows/setup-js@v1
- name: Build unplugin
run: pnpm run build