Skip to content

ci: update GitHub Actions and expand package compatibility checks - #149

Merged
donskov merged 3 commits into
chore/migrate-eslint-to-oxcfrom
ci/update-shadow-tests
Sep 4, 2026
Merged

ci: update GitHub Actions and expand package compatibility checks#149
donskov merged 3 commits into
chore/migrate-eslint-to-oxcfrom
ci/update-shadow-tests

Conversation

@microshine

Copy link
Copy Markdown
Contributor

Summary

Updates the GitHub Actions workflow and improves package compatibility testing across supported Node.js versions.

Changes

  • Update GitHub Actions dependencies to their latest major versions
  • Run the main CI build on Node.js 24
  • Build and pack the npm package once, then reuse the generated tarball for compatibility checks
  • Test the packaged artifact on Node.js 20, 22, 24, and 26
  • Install the package in a clean consumer environment instead of testing directly from the repository
  • Verify CommonJS consumption with require("@peculiar/x509")
  • Verify ESM consumption with import("@peculiar/x509")
  • Disable unnecessary npm caching in compatibility jobs
  • Limit push and pull request CI runs to the master branch

Why

The compatibility job now tests the same package artifact that would be published to npm, which helps catch packaging, dependency, and runtime compatibility issues that may not be visible when running tests directly from the repository.

It also avoids rebuilding the package for every Node.js version, keeping the compatibility matrix relatively lightweight.

@microshine microshine self-assigned this Sep 4, 2026
@microshine
microshine requested a review from donskov September 4, 2026 08:34
@donskov
donskov merged commit 4f708e3 into master Sep 4, 2026
6 of 8 checks passed
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.

2 participants