Azure-Samples / Azure-Samples/infra-support-copilot

Create GitHub Actions workflows for infrastructure and app deployment

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
1
Forks
2
Avg merge
4d 42m
Merged PRs (30d)
1

Description

## Current Issue

While we expect contributors to this repository to have tested their changes before submitting a Pull Request, and ideally to test after PRs are merged into the `main` branch, there is a persistent challenge: Automated tests are only truly valuable when they run against actual Azure resources. Local unit tests (e.g., Python tests within the GitHub Action runner or Playwright tests with mocked services) add some value, but without live Azure infrastructure, they may miss key integration issues.

## Suggested Solution
- Create `infra-provision.yml` (manual trigger for Bicep deployments)
- Create `app-deploy.yml` (auto-trigger on `app/**`, `static/**`, `templates/**` changes)
- Create `infra-validate.yml` (PR validation for Bicep syntax, auto-trigger on `infra/**` changes)

## Additional information
- GitHub Actions should run against the GitHub Environment called `staging`
- Refer to the pre-existing workflow called `cicd.yml` as a reference implementation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.