| name | dev-workflow |
|---|---|
| description | Branches, CI, and dotnet restore/build/test/pack for the Contentstack Model Generator solution. |
- Setting up a local build or verifying changes before a PR.
- Understanding which GitHub Actions run on PRs or releases.
- Packing or publishing the global tool NuGet package.
- Anything about how the CLI and codegen behave at runtime — see contentstack-model-generator/SKILL.md.
- Solution:
contentstack.model.generator/contentstack.model.generator.sln - Tool (executable + pack):
contentstack.model.generator/contentstack.model.generator.csproj(PackAsTool,net7.0). - Tests:
contentstack.model.generator.tests/contentstack.model.generator.tests.csproj(net9.0).
| Step | Command |
|---|---|
| Restore | dotnet restore contentstack.model.generator/contentstack.model.generator.sln |
| Build | dotnet build contentstack.model.generator/contentstack.model.generator.sln |
| Test | dotnet test contentstack.model.generator/contentstack.model.generator.sln |
| Pack Release | cd contentstack.model.generator && dotnet pack -c Release -o out (output .nupkg under contentstack.model.generator/out/; CI uses similar dotnet pack from that directory). |
Package version and metadata: see PackageVersion / ReleaseVersion in contentstack.model.generator/contentstack.model.generator.csproj (avoid duplicating version numbers in prose here).
CI and unit tests: No workflow under .github/workflows/ runs dotnet test. Run dotnet test contentstack.model.generator/contentstack.model.generator.sln locally before relying on a PR.
Talisman: .talismanrc may configure secret scanning for this repo. If it references workflow paths that no longer exist (e.g. .github/workflows/secrets-scan.yml), update ignores or restore the workflow in a follow-up change.
- Workflow .github/workflows/check-branch.yml: pull requests into
mastermust come fromstaging(other combinations get a failing check and PR comment). - Plan feature work accordingly: integrate to
stagingfirst unless your team documents an exception.
| Workflow | Role |
|---|---|
| check-branch.yml | Enforces staging → master for PRs targeting master. |
| sca-scan.yml | dotnet restore + Snyk on .NET assets. |
| codeql-analysis.yml | CodeQL for C#. |
| nuget-publish.yml | On release created: pack and push NuGet package(s). |
| policy-scan.yml, issues-jira.yml | Org/process automation as configured. |
- Run build + test locally before opening or updating a PR.
- For user-visible behavior or releases, coordinate version and CHANGELOG.md with maintainers (see code-review/SKILL.md).