update #63
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
run: | |
name: Run Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Download Rust Tools | |
uses: ./.github/actions/install-rust-tools | |
- name: Run cargo-fmt | |
run: cargo fmt --all --check | |
- name: Run cargo-clippy | |
run: cargo clippy | |
- name: Build | |
run: cargo build | |
- name: Run cargo-tarpaulin | |
run: cargo tarpaulin --workspace --out html --out xml --exclude-files **/tests/* --exclude-files **/benches/* --output-dir ./target/ | |
- name: Upload Code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
files: cobertura.xml | |
token: ${{ secrets.CODECOV_TOKEN }} | |