chore(release): bump version to 1.1.2 #53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| # 开发期门禁:PR / push 即验证,不再等 tag 发版才暴露破坏。 | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| frontend: | |
| name: 前端测试 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - name: TypeScript 与 Svelte 检查 | |
| run: npm run check | |
| - name: 全量前端测试 | |
| run: npm run test:frontend | |
| - name: 生产构建 | |
| run: npm run build | |
| backend: | |
| name: Rust 检查与测试(${{ matrix.platform }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: macos-latest | |
| - platform: ubuntu-22.04 | |
| - platform: windows-latest | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@1.97.1 | |
| with: | |
| components: rustfmt, clippy | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install Linux build dependencies | |
| if: startsWith(matrix.platform, 'ubuntu') | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libgtk-3-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev | |
| - name: Rust 缓存 | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: | | |
| . -> target | |
| - name: Install frontend dependencies | |
| run: npm ci | |
| - name: Build frontend assets for Rust tests | |
| run: npm run build | |
| - name: cargo fmt | |
| run: cargo fmt --all -- --check | |
| - name: cargo check(0 warning 基线) | |
| run: cargo check --workspace --all-targets | |
| env: | |
| RUSTFLAGS: -D warnings | |
| - name: cargo clippy | |
| run: cargo clippy --workspace --all-targets -- -D warnings | |
| - name: cargo test | |
| run: cargo test --workspace --all-targets |