Skip to content

Release: CI/CD Improvements and Documentation - #128

Closed
JaegerCaiser wants to merge 21 commits into
mainfrom
release/ci-cd-improvements-and-documentation
Closed

Release: CI/CD Improvements and Documentation#128
JaegerCaiser wants to merge 21 commits into
mainfrom
release/ci-cd-improvements-and-documentation

Conversation

@JaegerCaiser

@JaegerCaiser JaegerCaiser commented Nov 7, 2025

Copy link
Copy Markdown
Owner

Release: CI/CD Improvements and Documentation

Esta release inclui melhorias significativas na arquitetura de CI/CD.

🚀 Melhorias de CI/CD

Arquitetura Condicional de Deploy

  • Refatoração completa dos workflows para deploy condicional
  • Otimização de custos: Deploy do Vercel só quando há mudanças reais no código
  • Status checks consistentes: Jobs sempre rodam (sempre verdes) mas pulam steps internos
  • Arquitetura uniforme: Mesmo padrão aplicado em reusable-test-and-lint.yml e reusable-deploy-vercel.yml

Correções Técnicas

  • Renomeação de jobs: Prevenção de conflitos em status checks
  • Correção de links: Template de comentário da PR corrigido
  • Separação de responsabilidades: Workflows focados em tarefas específicas

🔧 Arquivos Alterados

  • .github/workflows/ - Refatoração completa dos workflows

📊 Impacto

  • Performance: Redução significativa no tempo de execução de workflows
  • Custos: Otimização de recursos do Vercel
  • Manutenibilidade: Código mais limpo e bem documentado

Release gerada automaticamente pelo semantic-release

🔄 [Auto-Sync] Merge main back into develop
- Rename jobs with unique prefixes to avoid confusion when multiple workflows run
- Preview jobs: 'Preview - Test & Lint', 'Preview - Deploy to Vercel'
- Production jobs: 'Production - Test & Lint', 'Production - Deploy to Vercel'
- Develop jobs: 'Develop - Test & Lint', 'Develop - Deploy to Vercel'
- This resolves duplicate job names in PR status checks

Note: Rulesets need manual update via web interface to match new job names
- Rename jobs with unique prefixes to avoid confusion when multiple workflows run
- Preview jobs: 'Preview - Test & Lint', 'Preview - Deploy to Vercel'
- Production jobs: 'Production - Test & Lint', 'Production - Deploy to Vercel'
- Develop jobs: 'Develop - Test & Lint', 'Develop - Deploy to Vercel'
- This resolves duplicate job names in PR status checks

Note: Rulesets need manual update via web interface to match new job names
- Move deploy control from caller to reusable-deploy-vercel.yml
- Add paths-filter back to reusable-deploy-vercel.yml for internal control
- Remove job-level condition from preview.yml deploy-preview
- Both jobs now always run (green status checks) but skip steps when no code changes
- Optimizes Vercel costs: deploy only when src/public/package files change

Before: deploy-preview job skipped entirely when no code changes
After: deploy-preview job runs but skips internal steps, maintaining status checks
…ture

Add the final chapter about implementing conditional deploy logic in reusable workflows:
- Status checks consistency problem
- Moving control from job-level to step-level conditions
- Uniform architecture across reusable workflows
- Cost optimization benefits
- Complete before/after comparison with code snippets
- Move deploy control from caller to reusable-deploy-vercel.yml
- Add paths-filter back to reusable-deploy-vercel.yml for internal control
- Remove job-level condition from preview.yml deploy-preview
- Both jobs now always run (green status checks) but skip steps when no code changes
- Optimizes Vercel costs: deploy only when src/public/package files change

Before: deploy-preview job skipped entirely when no code changes
After: deploy-preview job runs but skips internal steps, maintaining status checks
Fix malformed preview URL in the PR comment template:
- Remove incorrect 'dpreview.com' prefix
- Restore proper deployment URL variable reference
…inciple

Docs: Add 'Verify, Then Act' Principle
@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

🚀 Vercel Preview Deployment

A pré-visualização para este PR foi atualizada.

Recurso Link
🔗 URL de Preview https://www.dpreview.com/(https://mrdeveloper-pwclh8yu0-matheus-caisers-projects.vercel.app)
📜 Logs do Deploy Ver logs da Action

Commit: 0d679a086149dd42e8fc7b63c749ce1f8eef3248

…d-saga"

This reverts commit 1933a06, reversing
changes made to b983a4b.
@JaegerCaiser JaegerCaiser reopened this Nov 7, 2025
@JaegerCaiser
JaegerCaiser deleted the release/ci-cd-improvements-and-documentation branch November 7, 2025 13:57
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