fix: 简化错误处理中的字符串格式化,使用大括号语法替代传统的格式化方式 #152
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: build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-rust: | |
| strategy: | |
| matrix: | |
| platform: [ ubuntu-latest ] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Rust | |
| run: rustup toolchain install stable --component llvm-tools-preview | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: install nextest | |
| uses: taiki-e/install-action@nextest | |
| - uses: Swatinem/rust-cache@v1 | |
| - name: Check code format | |
| run: cargo fmt -- --check | |
| # - name: Check the package for errors | |
| # run: cargo check --all | |
| - name: Lint rust sources | |
| run: cargo clippy --all-targets --all-features --tests --benches -- -D warnings | |
| - name: Execute rust tests | |
| run: cargo nextest run --all-features |