CI never runs on Windows although path and case handling is platform-specific

Aperta Adatta ai principianti
#267 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, javascript, node.js
Ambito
ci-cd, testing

Direzione di ricerca

Leggi .github/workflows/ci.yml e site/lib/lib.test.mjs, poi verifica come i job CI esistenti eseguono npm test. Aggiungi un job windows-latest che esegua i test sulle pull request e copri resolveRequest con i casi ..\\..\\x e %5c..%5c su win32. Il lavoro è terminato quando il job Windows esegue correttamente questi test sulle pull request.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue priority: low tests

Summary

Both CI jobs use ubuntu-latest, but the code has about 28 places handling path.sep, backslashes or realpathSync.native, plus case-insensitive filesystem logic, and contributors work on Windows.

Where

  • .github/workflows/ci.yml:17, :56
  • examples: site/build.mjs:290, site/validate.mjs:126, site/serve.mjs:48, :54, site/lib/links.mjs (caseMismatch)

Impact

A separator or case regression in containment checks such as resolveRequest passes CI and only breaks local Windows runs.

Suggested fix

Add a windows-latest job running npm test (about 8 s), or the full npm run check with fetch-depth: 0.

Acceptance criteria

  • windows-latest job runs the tests on PRs
  • resolveRequest cases for ..\\..\\x and %5c..%5c on win32

Getting started

  • Relevant files: .github/workflows/ci.yml, site/lib/lib.test.mjs
  • Run the tests: npm test; the full local gate is npm run check (Node 22+, no install step)
  • Related docs: CONTRIBUTING.md, site/README.md

Related: #139


Filed by repo-audit/full-audit at 4adb944. Severity: low. Effort: S. audit-key: testing|.github/workflows/ci.yml|windows

Lingua principale
JavaScript
Stelle
58
Fork
15
Merge medio
1g 15h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TMHSDigital/Free-Game-Dev-Assets

Tutte le issue di TMHSDigital/Free-Game-Dev-Assets

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.