CI check features (#1708)

To resolve issue #1136.

This is a cross verification against zepter.

- [cargo-featalign](https://github.com/hack-ink/cargo-featalign):
Verifies the proper propagation of all features.
- [zepter](https://github.com/ggwpez/zepter): Checks for accidentally
enabled features.

cc @ggwpez 

---
Switch to a new branch. Original PR #1537.

---------

Signed-off-by: Xavier Lau <xavier@inv.cafe>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
This commit is contained in:
Xavier Lau
2024-01-16 20:47:35 +08:00
committed by GitHub
parent a42a47f81d
commit 05cfb02bec
3 changed files with 22 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
name: Check Features
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
check-features:
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@v4
- name: Check
uses: hack-ink/cargo-featalign-action@bea88a864d6ca7d0c53c26f1391ce1d431dc7f34 # v0.1.1
with:
crate: substrate/bin/node/runtime
features: std,runtime-benchmarks,try-runtime
ignore: sc-executor
default-std: true