Feat(main): Colorize part of the search summary #127
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: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
# Only use stable for now. | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
#- beta | |
#- nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- name: Verify project manifest | |
run: cargo verify-project --verbose | |
- name: Check build | |
run: cargo check --verbose --all-targets --all-features | |
- name: Build and run tests | |
run: cargo test --verbose --all-targets --all-features | |
- name: Check correct rustfmt formatting | |
# HACK: pass all configuration items via CLI to circumvent unstability restriction. | |
run: > | |
cargo fmt --verbose --all --check | |
-- --config-path=/dev/null --config=$( | |
cat rustfmt.toml | | |
sed -E 's/\#.*$//g' | | |
sed '/^$/d' | | |
sed 's/ //g' | | |
sed -Ez 's/(\r)?\n/,/g' | | |
sed 's/,$//' | | |
sed 's/"//g' | |
) | |
- name: Check clippy warnings | |
run: cargo clippy --verbose --all-targets --all-features -- --deny warnings | |
- name: Build documentation | |
run: cargo doc --verbose --all-features --no-deps --document-private-items | |
env: | |
RUSTDOCFLAGS: "-Dwarnings" |