Skip to content

Merge pull request #23 from JMTamayo/main #22

Merge pull request #23 from JMTamayo/main

Merge pull request #23 from JMTamayo/main #22

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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: Build
run: cargo build --workspace --all-features
- name: Format
run: cargo fmt --all --check
- name: Lints
run: cargo clippy --workspace --all-features
- name: Unit Tests
env:
MIN_LINE_COVERAGE_TARGET: 80
run: cargo llvm-cov --workspace --all-features --show-missing-lines --summary-only --fail-under-lines ${{ env.MIN_LINE_COVERAGE_TARGET }}
- name: Doc Tests
run: cargo test --workspace --all-features --doc