feat: initial implementation #2
Workflow file for this run
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: Rust CI | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
rustup component add clippy | |
rustup component add rustfmt | |
cargo install cargo-tarpaulin | |
- name: Build with Cargo | |
run: cargo build | |
- name: Run tests with coverage | |
run: cargo tarpaulin --out Html | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
- name: Lint with Clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: tarpaulin_report | |
path: tarpaulin-report.html | |