Merge pull request #4 from Lips7/feature/process-iter #10
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: Code Coverage | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'matcher_rs/src/**' | |
| - '.github/workflows/coverage.yml' | |
| - 'Cargo.toml' | |
| pull_request: | |
| paths: | |
| - 'matcher_rs/src/**' | |
| - '.github/workflows/coverage.yml' | |
| - 'Cargo.toml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Install tarpaulin | |
| uses: taiki-e/install-action@cargo-tarpaulin | |
| - name: Generate code coverage | |
| run: cargo tarpaulin -p matcher_rs --out xml | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| file: ./cobertura.xml | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |