feat: 替换加号以解决无法下载带加号文件的问题 #48
This file contains 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: Run unit test | |
on: | |
push: | |
paths: | |
- "src/**" | |
- "examples/**" | |
- ".github/workflows/ut.yml" | |
pull_request: | |
paths: | |
- "src/**" | |
- "examples/**" | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install tarpaulin | |
run: cargo install cargo-tarpaulin | |
- name: Run tests | |
run: npm run rust:ut:xml | |
- name: Upload coverage reports | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./cobertura.xml |