[Infrastructure] GitHub Actions CI Pipeline - #2
Open
scarface-dev1 wants to merge 1 commit into
Open
Conversation
… build, and security audit - Add CI workflow (.github/workflows/ci.yml) with four parallel job stages: - Lint & Format Check: ESLint with TypeScript + Prettier - Tests: Unit tests across Node 20 and 22 with coverage upload - E2E Tests: End-to-end tests across Node 20 and 22 - Build: NestJS production build with compiled output verification - Security Audit: pnpm audit for dependency vulnerability scanning - Add Dependabot config (.github/dependabot.yml) for automated weekly dependency updates on both npm and GitHub Actions ecosystems - Add ESLint config (.eslintrc.js) with TypeScript parser and Prettier integration to fix missing linter configuration - Add Prettier config (.prettierrc) with project-wide formatting rules - Update test script in package.json to use --passWithNoTests so CI passes cleanly even when no test files are present yet - Configure workflow concurrency to cancel stale runs on the same branch - Add timeout-minutes to all jobs to prevent runaway CI runs
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
Adds a complete GitHub Actions CI/CD pipeline for the InsightArena AI Agent project. Every push/PR to \main\ is automatically validated across linting, testing (unit + e2e), building, and security auditing — all running in parallel where possible and across multiple Node.js versions.
Pipeline Architecture
\\mermaid
flowchart LR
A[Push / PR to main] --> B[Lint & Format]
B --> C[Tests Node 20]
B --> D[Tests Node 22]
B --> E[E2E Node 20]
B --> F[E2E Node 22]
C --> G[Build]
D --> G
E --> G
F --> G
A --> H[Security Audit]
\\
What's Included
CI Workflow (.github/workflows/ci.yml)
Five independent job stages with smart dependencies:
Key features:
Dependabot (.github/dependabot.yml)
ESLint Config (.eslintrc.js)
o-explicit-any, allows _ignore\d unused vars
Prettier Config (.prettierrc)
Package.json Fix
Verification
All CI stages pass locally:
\\�ash
pnpm lint # ✓ 0 errors
pnpm test # ✓ 0 tests, exit 0 (--passWithNoTests)
pnpm build # ✓ compiles cleanly
pnpm audit # ✓ no high-severity issues
\\
Closes Arena1X#53