feat: update ci config & fix clippy warnings (#28) #49
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: 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}} |