fix: 修复可拓展包无法校验不存在的主程序 #16
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/**" | |
- "Cargo.lock" | |
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 cargo components | |
run: cargo install cargo-tarpaulin miniserve | |
- name: Run tests | |
run: npm run rs:ut:xml | |
- name: Upload coverage reports | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./cobertura.xml |