Skip to content

Add basic GitHub Actions CI pipeline#46

Merged
enlorik merged 2 commits into
mainfrom
copilot/add-github-actions-ci-pipeline
May 10, 2026
Merged

Add basic GitHub Actions CI pipeline#46
enlorik merged 2 commits into
mainfrom
copilot/add-github-actions-ci-pipeline

Conversation

Copilot AI commented May 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a CI workflow that runs on pull requests and pushes to main using Node 22
  • run npm ci, npm run lint, npm run build, and npm test in GitHub Actions
  • add Vitest and a few small mocked-data tests for Codeforces service helpers

Testing

  • npm test
  • npm run lint
  • npm run build

Copilot AI and others added 2 commits May 10, 2026 16:16
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 AI requested a review from enlorik May 10, 2026 16:19
@enlorik
enlorik marked this pull request as ready for review May 10, 2026 16:44
Copilot AI review requested due to automatic review settings May 10, 2026 16:44
@enlorik
enlorik merged commit e83bb67 into main May 10, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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, and npm test on PRs and pushes to main (Node 22).
  • Introduced Vitest (npm test) and added helper-focused unit tests for Codeforces daily-problem logic and failure handling.
  • Exported getProblemKey and pickDailyProblem to 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants