Repository navigation
ci: configurar pipeline de CI automatizado no GitHub Actions - #13
Merged
Merged
Conversation
Adiciona workflow de CI no GitHub Actions com matrix multi-OS e multi-versao do Go (1.22.x e 1.23.x). Valida formatacao (gofmt), dependencias, testes com race detector e compilacao dos binarios. Closes #6
Ajusta normalizePath e GetRepoRoot para avaliar symlinks e compatibilizar caminhos no macOS e Windows no CI.
Garante que arquivos Go sejam lidos e salvos com LF no Windows, prevenindo falha de verificacao do gofmt no CI.
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.
Descrição
Configura o pipeline de integração contínua (CI) automatizado no GitHub Actions para validar automaticamente formatação de código (
gofmt), integridade de dependências (go mod verify), testes automatizados com flag de race (go test -v -race ./...) e compilação multiplataforma dos pacotes e binários em uma matrix de sistemas operacionais (ubuntu-latest,macos-latest,windows-latest) e versões do Go (1.22.x,1.23.x).Closes #6
Tipo de Alteração
feat: Nova funcionalidadefix: Correção de bugrefactor: Refatoração de código sem alteração no comportamentoperf: Melhoria de performancedocs: Alteração ou adição na documentaçãostyle: Formatação, linting, imports (sem mudança de lógica)test: Adição ou ajuste de testes automatizadoschore: Dependências, scripts ou configurações geraisAlterações Realizadas
.github/workflows/ci.ymlconfigurado com triggers parapushepull_requestna branchmain.ubuntu-latest,macos-latest,windows-lateste Go1.22.x,1.23.x.gofmt), verificação de módulos (go mod verify), execução de testes com race detector (go test -v -race ./...) e compilação do binário (go build ./cmd/envguard).go.modpara1.22.0garantindo compatibilidade com o matrix build.Como Testar
go test ./...ego build ./cmd/envguard.Checklist do Contribuinte (Pré-Envio)
git diffegit status..env), token ou arquivo temporário foi comitado.gofmt -s -w .e.editorconfig).go test ./...ego build ./...).