Bump the clap group with 1 update (#1128) #2873
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: ["*"] | |
paths-ignore: | |
- "docs/**" | |
- "**.md" | |
- "docs/vercel/**" | |
- ".gitpod.yml" | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- "docs/**" | |
- "**.md" | |
- "docs/vercel/**" | |
- ".gitpod.yml" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
rust: [stable, nightly] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: clippy | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build Debug | |
run: | | |
rustc --version | |
cargo build --features=fail-on-deprecated | |
- name: Run tests | |
run: cargo test | |
- name: Run clippy | |
run: cargo clippy | |
- name: Run onefetch | |
run: cargo run | |
- name: Run onefetch (with commitgraph) | |
run: git commit-graph write --no-progress --reachable && cargo run | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
- name: Run rustfmt | |
run: cargo fmt -- --check | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install cargo-tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
crate: cargo-tarpaulin | |
version: latest | |
- name: Coverage with tarpaulin | |
run: cargo tarpaulin --workspace --out Lcov | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v3 |