| name: Code Coverage |
| |
| on: |
| push: |
| branches: |
| - master |
| pull_request: |
| branches: |
| - master |
| |
| jobs: |
| cover: |
| name: Auto Codecov Coverage |
| runs-on: ubuntu-latest |
| |
| steps: |
| - name: Checkout Repository |
| uses: actions/checkout@v4 |
| |
| - name: Install Rust toolchain |
| run: | |
| rustup set profile minimal |
| rustup update --no-self-update stable |
| rustup default stable |
| |
| - name: Run cargo-tarpaulin |
| run: | |
| cargo install cargo-tarpaulin |
| cargo tarpaulin --out xml |
| |
| - name: Upload to codecov.io |
| uses: codecov/codecov-action@v4 |
| with: |
| token: ${{secrets.CODECOV_TOKEN}} |