Skip to content

ci: add Node.js runtimes to GitHub Actions workflow to test on oldest supported version - #109

Closed
iiroj wants to merge 7 commits into
tinylibs:mainfrom
iiroj:ci-18.0.0
Closed

iiroj wants to merge 7 commits into
tinylibs:mainfrom
iiroj:ci-18.0.0

Conversation

@iiroj

@iiroj iiroj commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds Node.js 18.0.0, 18.x, and 24.x to the GitHub Actions workflow so that tinyexec tests are run on all supported versions (although 18 is already EOL, and soon 20 as well). The latest already points to v25.

@iiroj

iiroj commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Looks like tsdown doens't work with Node.js 18... I'll try splitting a separate build step and passing it as an artifact to the test jobs.

EDIT: Vitest doesn't work with v18 either...

@iiroj

iiroj commented Apr 6, 2026

Copy link
Copy Markdown
Contributor Author

@43081j looks like issue #57 is not feasible.

@iiroj
iiroj marked this pull request as draft April 6, 2026 07:32
@iiroj

iiroj commented Apr 6, 2026

Copy link
Copy Markdown
Contributor Author

Marking this as a draft because I want to try converting the tests to native node:test; that should work on v18.

@iiroj

iiroj commented Apr 6, 2026

Copy link
Copy Markdown
Contributor Author

Even with node:test, can't get these to run on 18.0.0 — the last LTS version 18.20.8 does work, but then again Bun is having trouble. I'm leaning closer to this not being worth the effort.

@iiroj iiroj closed this Apr 6, 2026
@43081j

43081j commented Apr 6, 2026

Copy link
Copy Markdown
Member

yeah unfortunately most of our dev stack doesn't support 18.x anymore.

if we wanted to test 18.x we'd basically need to downgrade a bunch of our tools.

im not sure there's any other solution in that case. maybe we should close the issue and just test against LTS? and manually prove it works in 18.x still

@iiroj

iiroj commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor Author

I could lift some improvements from this PR, like testing against the build output instead of source files, and adding Node.js 24. For the older Node.js versions we could directly run some tiny smoke tests against the build artifact, instead of Vitest. What do you think?

Node.js 20 will also be EOL this month so the disclaimer could just be that "EOL versions should work but are not tested exhaustively".

@43081j

43081j commented Apr 6, 2026

Copy link
Copy Markdown
Member

i think that makes sense, though i'd test the build output in its own block i think.

basically:

  • a new test case (or describe block) which tests dist/
  • a standalone test file excluded from vitest which uses node:assert but no test runner (because even the node test runner is extremely flaky across versions)

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