Repository navigation
Run the examples against Locally in GitHub Actions - #6
Open
tombuildsstuff wants to merge 5 commits into
Open
tombuildsstuff wants to merge 5 commits into
tombuildsstuff wants to merge 5 commits into
Conversation
Pull Requests run the examples they change (or every example, when the CI itself changes), and running the workflow manually runs every example. Examples are batched by kind, so each job sets up one toolchain and starts Locally once with the plugins its examples need. Also adds the GitHub Actions ecosystem to Dependabot, to keep the pinned action SHAs up to date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The custom cloud.Configuration didn't set ActiveDirectoryAuthorityHost, so EnvironmentCredential failed and DefaultAzureCredential only worked when it could fall back to an Azure CLI login - which isn't the case in CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Terraform, OpenTofu and Pulumi examples now destroy even when the apply fails, so a partially-created Resource Group no longer breaks every later example in the batch. The runner's resolver is also pointed at Locally's DNS, so data planes such as Key Vault can be reached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Locally's DNS only answers for the names it serves, so a made-up Key Vault name never resolves - check control-plane.locally instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setup-locally configures and validates DNS for *.locally itself (locallybuild/setup-locally#2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a GitHub Actions workflow that runs the examples against Locally, using
locallybuild/setup-locally..github/workflows/examples.ymlor.github/scripts/) runs every example, so this PR runs all of them.workflow_dispatch) runs every example: 320 in 35 jobs.Each job runs a batch of up to 10 examples of one kind (ARM, Bicep, Terraform, OpenTofu, Go, .NET or Pulumi). It sets up that toolchain and starts Locally once, with the plugins listed in those examples' READMEs. Each example runs as its README describes; Terraform, OpenTofu and Pulumi also
destroy. A job runs all of its examples and then lists every one that failed.Not covered: the Service Bus sender/processor examples (they loop forever), and the Azure CLI and PowerShell examples (they're only snippets in READMEs).
Every action is pinned to a commit SHA except
locallybuild/setup-locally, and Dependabot now proposes updates for those pins.Signs in using the
LOCALLY_TEAM_UUIDrepository variable over OIDC.🤖 Generated with Claude Code