44 push :
55 branches :
66 - main
7- - feat/*
7+ - feat/*
88 pull_request :
99
1010env :
6363 - name : Test project no default features
6464 run : cargo test --locked --no-default-features
6565 - name : Clippy project
66- run : cargo clippy --all-targets -- -D warnings
66+ run : cargo clippy --all-targets -- -D warnings
6767 - name : Fmt check project
6868 run : cargo fmt --check
6969
7575 run : cargo test --locked --no-default-features
7676 - name : Clippy examples
7777 working-directory : examples
78- run : cargo clippy --all-targets -- -D warnings
78+ run : cargo clippy --all-targets -- -D warnings
7979 - name : Fmt check examples
8080 working-directory : examples
8181 run : cargo fmt --check
@@ -146,11 +146,11 @@ jobs:
146146 name : Code coverage
147147 runs-on : ubuntu-latest
148148 container :
149- image : xd009642/tarpaulin:0.31.1
150- options : --security-opt seccomp=unconfined
149+ image : xd009642/tarpaulin:0.31.1
150+ options : --security-opt seccomp=unconfined
151151 steps :
152- - name : Checkout sources
153- uses : actions/checkout@v4
152+ - name : Checkout sources
153+ uses : actions/checkout@v4
154154 - name : Cache
155155 uses : actions/cache@v4
156156 with :
@@ -161,12 +161,25 @@ jobs:
161161 ~/.cargo/git/db/
162162 target/
163163 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
164- - name : Generate code coverage
164+ - name : Generate code coverage
165165 run : |
166166 cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml --engine llvm
167- - name : Upload to codecov.io
168- uses : codecov/codecov-action@v5
167+ - name : Upload to codecov.io
168+ uses : codecov/codecov-action@v5
169169 with :
170- fail_ci_if_error : true
170+ fail_ci_if_error : true
171171 env :
172172 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
173+
174+ cheack-features :
175+ name : Check all variations of feature sets
176+ runs-on : ubuntu-latest
177+ steps :
178+ - name : Checkout repository
179+ uses : actions/checkout@v4
180+ with :
181+ fetch-depth : 0
182+ - name : Install Rust toolchain
183+ uses : dtolnay/rust-toolchain@stable
184+ - name : Test with cargo-hack
185+ run : cargo install cargo-hack && cargo hack test --feature-powerset
0 commit comments