Merge branch 'getAsterisk:main' into main

This commit is contained in:
2025-08-11 14:31:28 +08:00
committed by GitHub

53
.github/workflows/pr-check.yml vendored Normal file
View File

@@ -0,0 +1,53 @@
name: PR Checks (bun run check)
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: read
concurrency:
group: pr-check-${{ github.workflow }}-${{ github.event.pull_request.head.sha || github.sha }}
cancel-in-progress: true
jobs:
check:
name: bun run check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache Bun dependencies
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install JS/TS dependencies
run: bun install --frozen-lockfile
- name: Set up Rust (stable)
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: |
src-tauri -> src-tauri/target
cache-on-failure: true
- name: Run checks
run: bun run check