| name | dev-workflow |
|---|---|
| description | Use for branches, CI, build/test scripts, and NuGet release flow in contentstack-management-dotnet. |
- Changing or debugging GitHub Actions workflows.
- Running the same build/test commands as CI locally.
- Preparing a release or understanding how packages are published.
- Default: open PRs against
developmentfor feature and fix work. - Releases: open a release PR
development→main(nostaging). Aftermainis updated,.github/workflows/back-merge-pr.ymlopensmain→developmentwhen needed so branches stay aligned. - Publishing: create a GitHub Release (after the release commit is on
main) to trigger.github/workflows/nuget-publish.yml(release: created). - Version gate: PRs that touch product code or
Directory.Build.propsneed matching bumps inDirectory.Build.propsandCHANGELOG.mdper.github/workflows/check-version-bump.yml.
| Workflow | Role |
|---|---|
unit-test.yml |
On PR and push: runs Scripts/run-unit-test-case.sh (unit tests + TRX + coverlet). |
back-merge-pr.yml |
After pushes to main, opens main → development PR if needed. |
check-version-bump.yml |
On PR: requires version + changelog when SDK sources / props change. |
nuget-publish.yml |
On GitHub Release (created): dotnet pack -c Release -o out and push to NuGet / GitHub Packages. |
policy-scan.yml, sca-scan.yml |
Security / compliance scans. |
- Build:
dotnet build Contentstack.Management.Core.sln - Unit tests (matches CI):
sh ./Scripts/run-unit-test-case.shfrom repo root (cleansContentstack.Management.Core.Unit.Tests/TestResultsfirst). - Integration tests: separate project; see
../testing/SKILL.md.
Scripts/run-unit-test-case.sh— unit test entrypoint used in CI.Scripts/generate_integration_test_report.py— integration test reporting helper (if used by the team).
- Contributors need
CSManagementSDK.snkfor a full signed build matching the repo; see../framework/SKILL.md. - NuGet push uses repository secrets (
NUGET_API_KEY, etc.)—never commit keys.
Top-level commands: ../../AGENTS.md.