Skip to content

Commit

Permalink
Improve tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Jan 20, 2024
1 parent a293ae5 commit 5241699
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings

jobs:
build:
Expand All @@ -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
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5241699

Please sign in to comment.