Skip to content

feat: make integration-test workflow reusable via workflow_call - #42

Merged
Elizabeth Maher (EMaher) merged 9 commits into
mainfrom
copilot/hook-up-workflow-integration-test
May 9, 2026
Merged

Elizabeth Maher (EMaher) merged 9 commits into
mainfrom
copilot/hook-up-workflow-integration-test

Conversation

Copilot AI commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

No reusable trigger existed on the integration test workflow to allow it to be called from other workflows.

Changes

.github/workflows/integration-test.yml

  • Added workflow_call trigger with explicit secrets: block alongside the existing workflow_dispatch, making it a reusable callable workflow for future publish gates or other automation

Required environment secrets (for workflow_call callers)

Secret Purpose
AZURE_CLIENT_ID OIDC login
AZURE_TENANT_ID OIDC login
AZURE_SUBSCRIPTION_ID OIDC login
APIM_PUBLISHER_EMAIL APIM provisioning

- Add workflow_call trigger to integration-test.yml so it can be
  reused as a called workflow
- Create publish.yml workflow that gates npm publish on the
  all-resource-types round-trip integration test passing first

Closes #25

Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/2d7b027b-8e3f-43e5-828d-fdca8fd0fc7a

Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub action for round trip integration test workflow feat: gate npm publish on all-resource-types integration test May 8, 2026
Comment thread .github/workflows/publish.yml Outdated
Closes #25

Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/8127b66f-239b-4f7d-8cd9-47771d6f0284

Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
Copilot AI changed the title feat: gate npm publish on all-resource-types integration test feat: make integration-test workflow reusable via workflow_call May 8, 2026
Comment thread .github/workflows/integration-test.yml
Comment thread .github/workflows/integration-test.yml
Comment thread .github/workflows/integration-test.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the integration test GitHub Actions workflow reusable via workflow_call, enabling other workflows to invoke the extract→publish round-trip integration test while explicitly declaring required secrets and inputs.

Changes:

  • Added workflow_call trigger (with required secrets) to .github/workflows/integration-test.yml alongside the existing workflow_dispatch.
  • Updated the round-trip integration test script to default to hard-delete/purge behavior on teardown.
  • Added a troubleshooting “skill” document describing OIDC + RBAC prerequisites for running the integration tests reliably.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/integration-test.yml Adds workflow_call reusability and enhances emergency teardown with RG wait + APIM purge.
tests/integration/all-resource-types/run-roundtrip-test.ps1 Changes default teardown behavior to hard-delete unless explicitly overridden.
.github/skills/integration-test-prerequisites/SKILL.md Documents setup/troubleshooting steps for OIDC federated creds, RBAC, and required secrets.

Comment on lines +63 to +66
# Default to hard-delete on teardown unless explicitly disabled.
if (-not $PSBoundParameters.ContainsKey('HardDelete')) {
$HardDelete = $true
}
foreach ($apimName in @($sourceApimName, $targetApimName)) {
if (-not [string]::IsNullOrWhiteSpace($apimName)) {
Write-Host "🗑️ Purging soft-deleted APIM: $apimName"
az apim deletedservice purge --service-name $apimName --location $location 2>$null
@EMaher
Elizabeth Maher (EMaher) merged commit 5e75b24 into main May 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hook up workflow for round trip integration test.

4 participants