Repository navigation
ci: add GitHub Actions workflow for lint and test - #34
Merged
Merged
Conversation
Run oxlint and the Playwright-backed vitest suite on every push to main and on pull requests. The Hono test server is started first so credential-less integration specs keep skipping instead of failing. Closes #33
Align test/index.spec.ts with the other integration suites (cos/obs/aws/azure), which already skip when credentials are absent: probe /api/oss-config in a beforeAll and let every real-OSS case bail early. This keeps a credential-less CI run green while preserving full local integration coverage.
Owner
Author
|
First CI run exposed a gap: |
Owner
Author
|
Add coverage and show with comment in pr |
Test job now runs pnpm test:ci:coverage (json-summary reporter added to vitest.config.ts). A small script (coverage-comment.mjs) renders the totals and upserts a single marked comment on the PR, so re-runs update instead of stacking.
Contributor
Coverage
|
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.
Closes #33
loop-task: #33
Requirement
Trigger lint and tests on new commits to main and on pull requests.
Changes
.github/workflows/ci.ymlwith two jobs:pnpm lint(oxlint src test), node 22 + pnpm 11 with cached installs.pnpm test:ci(vitest run --browser.headless, Playwright chromium installed with system deps). The Hono test server (pnpm serve, :8080) is started first so the four integration suites fetch their config endpoint and skip cleanly when no credentials are present (CI has none); startup is polled and the log is dumped if it fails.Verification
pnpm lintexits 0; signature/unit specs pass headless in Chromium (52 tests, 5 files).