Skip to content

👷 Run automated tests in CI on each pull request#9

Merged
taras merged 2 commits into
mainfrom
ci-on-pull-requests
Jul 7, 2026
Merged

👷 Run automated tests in CI on each pull request#9
taras merged 2 commits into
mainfrom
ci-on-pull-requests

Conversation

@taras

@taras taras commented Jul 7, 2026

Copy link
Copy Markdown
Member

Motivation

The test suite (test/staticalize.test.ts) only ran manually — the sole GitHub Actions workflow (publish.yaml) triggers exclusively on v* tags, so pull requests could be merged without tests, lint, formatting, or type checks ever being validated.

Approach

  • Add .github/workflows/ci.yaml that runs on every pull_request and on pushes to main. A single ubuntu-latest job runs the full quality gate documented in AGENTS.md, cheapest checks first: deno fmt --check, deno lint, deno check mod.ts main.ts, then deno test -A.
  • Pin the Deno version to 2.9.1 in the new workflow and across all four existing publish.yaml jobs (previously the floating v2.x), so CI is reproducible and a Deno point-release can't silently change behavior. Bumping Deno now becomes a deliberate, reviewable change.

taras added 2 commits July 7, 2026 15:42
Add a CI workflow that runs formatting, lint, type check, and the test
suite on every pull request and on pushes to main. Also pin the Deno
version (2.9.1) across all workflows so CI is reproducible and version
bumps are deliberate.
@taras taras merged commit 89397f4 into main Jul 7, 2026
1 check passed
@taras taras deleted the ci-on-pull-requests branch July 7, 2026 19:45
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.

1 participant