From dbca3f5216563ff12db7f50419e7e7789becce84 Mon Sep 17 00:00:00 2001 From: clux Date: Wed, 24 Jul 2024 21:47:22 +0100 Subject: [PATCH] update and run in ci Signed-off-by: clux --- .github/workflows/features.yml | 23 +++++++++++++++++++++++ justfile | 8 +++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/features.yml diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml new file mode 100644 index 000000000..ab7a0fb02 --- /dev/null +++ b/.github/workflows/features.yml @@ -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 diff --git a/justfile b/justfile index 232175e33..3fb531a03 100644 --- a/justfile +++ b/justfile @@ -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