Add basic GitHub Actions CI pipeline#46
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/enlorik/HDD/sessions/262b1ec0-379f-417a-bae4-c001f4bcecfb Co-authored-by: enlorik <99548776+enlorik@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enlorik/HDD/sessions/262b1ec0-379f-417a-bae4-c001f4bcecfb Co-authored-by: enlorik <99548776+enlorik@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
enlorik
May 10, 2026 16:19
View session
enlorik
marked this pull request as ready for review
May 10, 2026 16:44
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a basic GitHub Actions CI workflow for the project and introduces a minimal Vitest test suite to validate key Codeforces service helper behavior, ensuring lint/build/test run automatically on PRs and main pushes.
Changes:
- Added a GitHub Actions workflow that runs
npm ci,npm run lint,npm run build, andnpm teston PRs and pushes tomain(Node 22). - Introduced Vitest (
npm test) and added helper-focused unit tests for Codeforces daily-problem logic and failure handling. - Exported
getProblemKeyandpickDailyProblemto make them directly testable.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/ci.yml |
Adds CI workflow to run install/lint/build/test on PRs and main pushes using Node 22. |
package.json |
Adds test script (vitest run) and includes vitest in devDependencies. |
package-lock.json |
Locks Vitest and its transitive dependencies for reproducible installs in CI. |
src/services/codeforcesService.js |
Exports helper functions needed for unit tests (getProblemKey, pickDailyProblem). |
src/services/codeforcesService.test.js |
Adds Vitest unit tests for helper behavior and problemset failure fallback behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Testing