GH-63: PR validation workflow with CI services#80
Closed
alekspetrov wants to merge 1 commit intomainfrom
Closed
Conversation
Add `.github/workflows/ci.yml` with 4 parallel jobs: - Lint: golangci-lint via official action - Test: race detector + coverage with PostgreSQL 16 and Redis 7 service containers, coverage report as PR comment - Security: gosec + govulncheck in report-only mode - Build: go build + conditional Docker build Add `.env.ci` with CI-specific connection strings and test config (reduced Argon2 params for speed, localhost service endpoints). Go module caching handled by actions/setup-go cache integration.
1 task
alekspetrov
added a commit
that referenced
this pull request
Apr 2, 2026
- Extract run() from main() to fix exitAfterDefer (gocritic) - Add ReadHeaderTimeout to all http.Server instances (gosec G112) - Bind test listener to 127.0.0.1 instead of all interfaces (gosec G102) - Add bounds checking for Argon2 int→uint casts (gosec G115) - Refactor config.Load() into section helpers to reduce cyclomatic complexity (gocyclo) - Fix response body leaks in tests (bodyclose) - Check all error return values in tests (errcheck) - Fix gofmt/goimports formatting across all files - Fix "initialise" → "initialize" typo (misspell) - Name return values in startServer helper (gocritic unnamedResult) - Remove unused os import from config_test.go
32 tasks
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.
Summary
Automated PR created by Pilot for task GH-63.
Closes #63
Changes
GitHub Issue #63: PR validation workflow with CI services
Parent: GH-36
Create
.github/workflows/ci.ymland.env.ci. This is the most complex piece: 4 parallel jobs (Lint with golangci-lint, Test with race detector + coverage using PostgreSQL 16 and Redis 7 service containers, Security with gosec + govulncheck in report-only mode, Build verifying bothgo buildand Docker build). Include Go module caching, coverage report as PR comment, and the.env.cifile with CI-specific database/Redis connection strings and test configuration. Triggered on PRs tomain.