Skip to content

CI: upgrade viewer-tests to Node 24 LTS and add pip/NuGet caching with global.json - #444

Merged
ItsNotRexed merged 3 commits into
ItsNotRexed:mainfrom
sombraSoft:ci/node24-and-caching
Nov 22, 2026
Merged

ItsNotRexed merged 3 commits into
ItsNotRexed:mainfrom
sombraSoft:ci/node24-and-caching

Conversation

@sombraSoft

@sombraSoft sombraSoft commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Depends on: #438

What and why

Part of #418 (step 5). Updates runner toolchains and enables dependency caching in .github/workflows/ci.yml:

  • Node 24 LTS: upgrades viewer-tests from setup-node@v4 + Node 20 to setup-node@v7.1.0 + Node 24 LTS, and updates CONTRIBUTING.md (Node.js 22+, CI tests 24 LTS).
  • Python test dependency pin + cache: pins pytest==9.2.0 in tests/requirements.txt and enables actions/setup-python cache: "pip" in translator-tests.
  • .NET SDK floor + NuGet lockfile cache: adds root global.json (8.0.100, rollForward: latestMajor), enables <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> on tools/rpf9dump/rpf9dump.csproj and tests/Rpf9DumpDiagnostics/Rpf9DumpDiagnostics.csproj with committed packages.lock.json files, and enables actions/setup-dotnet NuGet caching in check.

Action SHA verification

Action Tag Pinned Commit SHA
actions/setup-node v7.1.0 949feb2413d6458794dcd2491c4babbbce0c15c1
actions/setup-python v7.1.0 6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
actions/setup-dotnet v6.1.0 0f4a354dd5547a28c70b7853dbd95d5b67886e73

AI-assisted contribution.

Tested

  • CPU only, no game files or GPU involved.
  • Green fork CI on GitHub-hosted Windows/Ubuntu: https://github.com/sombraSoft/Leonida/actions/runs/44964802197 (viewer-tests on Node 24 LTS: 9s, check with NuGet cache: 2m04s, translator-tests with pip cache: 47s).
  • node --test tests/test_viewer_streaming.cjs on Node v24.16.0 -> 19/19 passed.
  • dotnet restore --locked-mode tools/rpf9dump/rpf9dump.csproj and tests/Rpf9DumpDiagnostics/Rpf9DumpDiagnostics.csproj -> exit 0.
  • dotnet build tools/rpf9dump/rpf9dump.csproj -c Release -> 0 warnings, 0 errors.
  • dotnet run --project tests/Rpf9DumpDiagnostics/Rpf9DumpDiagnostics.csproj -c Release -> passed.
  • jactionlint v2.6.0 (shellcheck 0.11.0): --profile correctness and --profile default .github/workflows/ci.yml -> exit 0, 0 findings.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (N/A — CI and toolchain config only)

@kotorvr

kotorvr commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Reviewed e2ad499: looks good

Ran: merged onto current main (clean). dotnet restore --locked-mode passed for both csproj files with the committed lock files, and dotnet build tools/rpf9dump/rpf9dump.csproj -c Release gave 0 errors (SDK 8.0.428). dotnet run of Rpf9DumpDiagnostics passed. node --test tests/test_viewer_streaming.cjs passed 21/21 (Node 22 locally). pytest==9.2.0 exists on PyPI. setup-node v7.1.0 = 949feb2, setup-python v7.1.0 = 6d4fd22 and setup-dotnet v6.1.0 = 0f4a354 all match their tags. The same ci.yml changes passed in #447's fork run (44964802197: check, translator-tests and viewer-tests on Node 24). This PR's own upstream run is waiting for approval. OS = Windows 11, Python 3.13.
Review was AI-assisted (Claude Code).

@ItsNotRexed
ItsNotRexed merged commit df1c2ef into ItsNotRexed:main Nov 22, 2026
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