Skip to content

[LOCKLITE-37] Integrate CI with linter, tests with coverage, and build#31

Merged
vbetsch merged 24 commits intodevelopfrom
chore/37-add-ci
Jul 24, 2025
Merged

[LOCKLITE-37] Integrate CI with linter, tests with coverage, and build#31
vbetsch merged 24 commits intodevelopfrom
chore/37-add-ci

Conversation

@vbetsch
Copy link
Owner

@vbetsch vbetsch commented Jul 24, 2025

No description provided.

@vbetsch vbetsch self-assigned this Jul 24, 2025
@vbetsch vbetsch added the ci About CI development, just pull requests for testing label Jul 24, 2025
@vbetsch vbetsch changed the title test ci [LOCKLITE-37] Integrate CI with linter, tests with coverage, and build Jul 24, 2025
@notion-workspace
Copy link

@vbetsch vbetsch requested a review from Copilot July 24, 2025 22:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 vbetsch merged commit 157a053 into develop Jul 24, 2025
4 checks passed
@vbetsch vbetsch deleted the chore/37-add-ci branch July 24, 2025 23:18
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci About CI development, just pull requests for testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants