Feature v0.5.0 #18
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: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Setup: Install Rust" | |
uses: actions-rust-lang/[email protected] | |
with: | |
components: llvm-tools-preview | |
- name: "Setup: Install cargo-llvm-cov" | |
uses: taiki-e/[email protected] | |
with: | |
tool: cargo-llvm-cov | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose | |
- name: Format | |
run: cargo fmt --package redsumer --all --check | |
- name: Lints | |
run: cargo clippy --package redsumer --all-features --verbose | |
- name: Unit Tests | |
run: cargo test --package redsumer --verbose | |
- name: Coverage | |
env: | |
MIN_LINE_COVERAGE_TARGET: 80 | |
run: cargo llvm-cov --package redsumer --all-features --summary-only --fail-under-lines ${{ env.MIN_LINE_COVERAGE_TARGET }} |