From 5241699f3cb5bff12210a6ec93892c34ddde62c7 Mon Sep 17 00:00:00 2001 From: Tau <4602612+bash@users.noreply.github.com> Date: Sat, 20 Jan 2024 17:32:05 +0100 Subject: [PATCH] Improve tests on CI --- .github/workflows/ci.yml | 18 ++++++++++++++---- Cargo.toml | 3 +++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 603d5de..a697408 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: env: CARGO_TERM_COLOR: always + RUSTFLAGS: -Dwarnings jobs: build: @@ -16,10 +17,19 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build - run: cargo build --all + run: cargo build - name: Check format - run: cargo fmt --all -- --check + run: cargo fmt -- --check - name: Run clippy - run: cargo clippy --workspace --all-targets --all-features -- --deny warnings + run: cargo clippy --all-targets --all-features -- --deny warnings + - name: Docs + run: cargo doc --features __docs + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 - name: Run tests - run: cargo test --all --all-features + run: cargo test \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index a7ece99..6970c43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,9 @@ windows-sys = { version = "0.52.0", features = ["Win32_System_Threading", "Win32 __docs = [] __test_readme = [] +[package.metadata.docs.rs] +features = ["__docs"] + [workspace] members = [ "termtheme"