Skip to content

Commit

Permalink
update and run in ci
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Jul 24, 2024
1 parent 86ea041 commit dbca3f5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: features

on:
push:
branches:
- main
pull_request:
paths:
- '*.toml'

jobs:
cargo-hack:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- uses: extractions/setup-just@v2
- name: Run cargo-hack
run: just hack
8 changes: 7 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ coverage:
{{open}} tarpaulin-report.html

hack:
cargo hack check --feature-powerset --ignore-private --workspace --skip=oauth,oidc
time cargo hack check --feature-powerset --no-private -p kube \
--skip=oauth,oidc \
--group-features=socks5,http-proxy,gzip \
--group-features=admission,jsonpatch
# Test groups features with minimal overlap that are grouped to reduce combinations.
# Without any grouping this test takes an hour and has to test >11k combinations.
# Skipped oauth and oidc, as these compile fails without a tls stack.

readme:
rustdoc README.md --test --edition=2021
Expand Down

0 comments on commit dbca3f5

Please sign in to comment.