|
| 1 | +version: |
| 2 | + format: 1 |
| 3 | + # Minimum version of the binary that is expected to work. This is just for printing a nice error |
| 4 | + # message when someone tries to use an older version. |
| 5 | + binary: 0.13.2 |
| 6 | + |
| 7 | +# The examples in this file assume crate `A` to have a dependency on crate `B`. |
| 8 | +workflows: |
| 9 | + check: |
| 10 | + - [ |
| 11 | + 'lint', |
| 12 | + # Check that `A` activates the features of `B`. |
| 13 | + 'propagate-feature', |
| 14 | + # These are the features to check: |
| 15 | + '--features=try-runtime,runtime-benchmarks,std', |
| 16 | + # Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually. |
| 17 | + '--left-side-feature-missing=ignore', |
| 18 | + # Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on. |
| 19 | + '--left-side-outside-workspace=ignore', |
| 20 | + # Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used. |
| 21 | + '--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking', |
| 22 | + # Auxillary flags: |
| 23 | + '--offline', |
| 24 | + '--locked', |
| 25 | + '--show-path', |
| 26 | + '--quiet', |
| 27 | + ] |
| 28 | + # Same as `check`, but with the `--fix` flag. |
| 29 | + default: |
| 30 | + - [ $check.0, '--fix' ] |
| 31 | + |
| 32 | +# Will be displayed when any workflow fails: |
| 33 | +help: |
| 34 | + text: | |
| 35 | + This repo uses the Zepter CLI to detect abnormalities in the feature configuration. |
| 36 | + It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`. |
| 37 | + Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you. |
| 38 | + links: |
| 39 | + - "https://github.com/ggwpez/zepter" |
0 commit comments