⬆️ chore(deps): update Rust crate clap_complete to v4.5.36 #497
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: Continuous Integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '51 5 * * 1' | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check | |
uses: dtolnay/rust-toolchain@stable | |
- run: cargo check --all-targets --locked | |
test: | |
name: Test suite | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure Git | |
run: | | |
git config --global user.email "test@example.com" | |
git config --global user.name "Test" | |
- name: Install cargo-tarpaulin | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: cargo-tarpaulin | |
- name: Run tests | |
run: | | |
cargo test | |
- name: Get test coverage | |
run: | | |
cargo tarpaulin --engine llvm --out xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
name: code-coverage-report | |
file: ./cobertura.xml | |
fail_ci_if_error: true | |
verbose: true | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check the lints | |
uses: dtolnay/rust-toolchain@stable | |
- run: cargo clippy --tests -- -D warnings | |
rustfmt: | |
name: Formatting | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check the formatting | |
uses: dtolnay/rust-toolchain@stable | |
- run: cargo fmt --all -- --check | |
lychee: | |
name: Check links | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check the links | |
uses: lycheeverse/lychee-action@v2 | |
with: | |
args: -v --max-concurrency 1 --exclude 'git-sumi/commit/' *.md website/docs/**/*.md | |
fail: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
audit: | |
name: Audit check | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run cargo-audit | |
uses: taiki-e/install-action@cargo-deny | |
- name: Scan for vulnerabilities | |
run: cargo deny check advisories |