Repository navigation
ci: Run the Flagsmith SDK behavioural spec - #65
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: 🟡 Moderate · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Organization UI
- Review profile: ASSERTIVE
- Plan: Advanced
- Run ID:
ac1f81ee-6f17-42a8-ae11-2c0b65f0e772
⛔ Files ignored due to path filters: 1
spec-adapter/Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing: 7
.github/workflows/sdk-spec.ymlCargo.tomlrenovate.jsonspec-adapter/.gitignorespec-adapter/Cargo.tomlspec-adapter/Dockerfilespec-adapter/src/main.rs
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Runs the Flagsmith SDK behavioural spec against this SDK on every pull request and push to
main.The SDK implements the spec as a short steps file: one function per SDK step, marked with the Gherkin step text as a comment. It doubles as a working example of the SDK.
sdk-spec/steps.rs: the steps file.sdk-spec/Cargo.tomlmakes it a small crate depending on the SDK by path, so it can be built, formatted and linted. Neither is published.sdk-spec/Dockerfile: builds the SDK from source on the MSRV toolchain (Rust 1.86) together with the spec's Rust harness, which compiles the steps file in and runs it for the spec over stdin/stdout..github/workflows/sdk-spec.yml: calls the spec's reusable workflow withlanguage: rust. The workflow starts a real Flagsmith instance, seeds it through the Admin API and runs the scenarios through the steps file. It is pinned tov0.3.0.Cargo.toml: excludessdk-spec/from the published package.renovate.json: bumps theuses:ref andspec-reftogether.The spec currently covers getting environment flags and getting identity flags with traits.