Skip to content

ci: optimize GitHub Actions workflows#16

Merged
jongio merged 2 commits intomainfrom
fix/optimize-github-actions
Mar 12, 2026
Merged

ci: optimize GitHub Actions workflows#16
jongio merged 2 commits intomainfrom
fix/optimize-github-actions

Conversation

@jongio
Copy link
Copy Markdown
Owner

@jongio jongio commented Mar 12, 2026

Changes

  • Enable Go module caching - Replace cache: false with cache: true and add cache-dependency-path in all setup-go steps
  • Add concurrency groups - Prevent duplicate workflow runs (ci, pr-build, release, update-azd-core)
  • Add path filters to CI - Only trigger CI on changes to cli/** or the workflow file itself
  • Remove redundant Go bootstrap - Replace the multi-step bootstrap pattern with a single setup-go using go-version from env
  • Add job timeouts - Add timeout-minutes to all jobs to prevent runaway builds
  • Cache Go tools - Add actions/cache for ~/go/bin in preflight jobs
  • Remove duplicate lint job - Merge the standalone lint job in release.yml into the existing preflight job
  • Remove redundant go mod download - The setup-go cache handles dependency restoration

- Enable Go module caching
- Add concurrency groups
- Add path filters to CI
- Remove redundant Go bootstrap
- Add job timeouts
- Cache Go tools
- Remove duplicate lint jobs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 12, 2026

🚀 Website Preview

Your PR preview was available here.

Preview has been cleaned up as the PR was closed.

github-actions Bot added a commit that referenced this pull request Mar 12, 2026
Go 1.26.0 has known stdlib vulnerabilities (GO-2026-4599,
GO-2026-4600, GO-2026-4601, GO-2026-4602) fixed in Go 1.26.1.
This was causing govulncheck failures in CI.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Mar 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🚀 Test This PR

A preview build (0.4.3-pr16) is ready for testing!

One-Line Install (Recommended)

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/install-pr.ps1) } -PrNumber 16 -Version 0.4.3-pr16"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/install-pr.sh | bash -s 16 0.4.3-pr16

Uninstall

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/uninstall-pr.ps1) } -PrNumber 16"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/uninstall-pr.sh | bash -s 16

Build Info:

@jongio jongio merged commit 5727ec9 into main Mar 12, 2026
10 checks passed
github-actions Bot added a commit that referenced this pull request Mar 12, 2026
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.

1 participant