[LOCKLITE-37] Integrate CI with linter, tests with coverage, and build#31
Merged
[LOCKLITE-37] Integrate CI with linter, tests with coverage, and build#31
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR integrates a comprehensive CI pipeline that includes linting, testing with coverage reporting, and build verification for pull requests to main and develop branches.
- Adds GitHub Actions CI workflow with three jobs: ESLint linting, unit tests with coverage, and application build
- Configures Jest with coverage thresholds (80% for branches, functions, lines, and statements) and improved test configuration
- Updates build scripts and Makefile to support coverage reporting alongside existing test commands
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/ci.yml | Adds CI workflow with linting, testing with coverage, and build jobs |
| jest.config.ts | Configures coverage thresholds, improves test configuration, and adds coverage exclusions |
| package.json | Adds test:cov script for coverage reporting |
| Makefile | Adds coverage target and updates .PHONY declarations |
| tests/units/modules/api/adapters/user.test.ts | Adds unit tests for UserAdapter functionality |
Files not reviewed (1)
- .idea/locklite.iml: Language not supported
vbetsch
added a commit
that referenced
this pull request
Jul 28, 2025
* ci: Create CI * ci: Refactor naming * chore(tests): Define coverage * chore: Add coverage command * ci: Run only PR * chore(ide): Exclude coverage dir * chore(tests): Ignore lib and prisma folders in coverage * refactor(make): Refactor tests command * chore(tests): Fix jest config * perf(tests): Refactor jest config * test: Add tests for UserAdapter * chore: Create format check * chore(linter): Import plugin:prettier/recommended * chore(deps): Install eslint-config-prettier * chore(make): Remove npm run format:c * chore(linter): Remove formatter from linter * chore(make): Add format commands * ci: Add formatter:prettier job * revert: Test to import prettier in linter again * fix(linter): Fix configuration * fix: Clean * fix(make): Fix format command * style: Format files with Prettier * fix: Fix linter issues
vbetsch
added a commit
that referenced
this pull request
Jul 28, 2025
* ci: Create CI * ci: Refactor naming * chore(tests): Define coverage * chore: Add coverage command * ci: Run only PR * chore(ide): Exclude coverage dir * chore(tests): Ignore lib and prisma folders in coverage * refactor(make): Refactor tests command * chore(tests): Fix jest config * perf(tests): Refactor jest config * test: Add tests for UserAdapter * chore: Create format check * chore(linter): Import plugin:prettier/recommended * chore(deps): Install eslint-config-prettier * chore(make): Remove npm run format:c * chore(linter): Remove formatter from linter * chore(make): Add format commands * ci: Add formatter:prettier job * revert: Test to import prettier in linter again * fix(linter): Fix configuration * fix: Clean * fix(make): Fix format command * style: Format files with Prettier * fix: Fix linter issues
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.
No description provided.