Add a test runner, a lint step and a pull_request CI check
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 65/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- eslint, github-actions, typescript, vite
- Bereich
- build-system, ci-cd, testing
Rechercherichtung
Read package.json and .github/workflows/deploy.yml to understand the existing scripts and deployment workflow; check tsconfig.json for the current type-check scope. Add the requested test, lint and pull request checks, keeping deployment gated to main, then run npm test, npm run lint and npm run build. Done when all checks pass and pull requests receive a required check.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
There is no test framework, no linter and no check before code reaches main. The only workflow deploys on push if tsc and vite build pass.
Where
package.json:8-14(scripts: dev, build, preview, typecheck, new-game).github/workflows/deploy.yml:3-6,.github/workflows/deploy.yml:26-27tsconfig.json:17(scripts/new-game.mjsis not type-checked)
Impact
A logic regression in rules code, trophy unlocks or save handling ships with no automated signal, and pull requests get no feedback.
Suggested fix
- Add
vitestwith"test": "vitest run"and a separatevitest.config.tsusingenvironment: 'node', so the PWA plugin and multi-page inputs are not loaded - Add ESLint with typescript-eslint and a
lintscript - Add a
pull_requesttrigger that runs install, lint, test and build only (deploy stays gated to main) - Run
npm testbeforenpm run buildin the deploy workflow
Acceptance criteria
-
npm testandnpm run lintexist and pass - Pull requests show a required check
Getting started
- Relevant files:
package.json,.github/workflows/deploy.yml,tsconfig.json - Run locally:
npm install, thennpm run dev - Checks:
npm run typecheckandnpm run build(there is no test suite yet) - Related docs:
README.md
Filed by repo-audit/full-audit at b001f5d. Severity: medium. Effort: M. audit-key: testing|package.json|scripts.test
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3
- Forks
- 3
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TMHSDigital/GH-Arcade
-
enhancement good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TMHSDigital/GH-Arcade#50 ·
-
enhancement good first issue severity: medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
TMHSDigital/GH-Arcade#47 ·
-
documentation good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TMHSDigital/GH-Arcade#34 ·
-
documentation good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TMHSDigital/GH-Arcade#33 ·
-
dependencies good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
TMHSDigital/GH-Arcade#27 ·
Alle Issues in TMHSDigital/GH-Arcade
Ähnliche Issues
-
automated-triage type/bug type/ci
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
📦 expo-router Android contributor: external needs review sdk-58 severity: medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
expo/expo#53436 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Translate the READMEOffendocumentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
asasemahmed/openboard#68 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Document PowerShell shell semantics and read-only Bash deduplication in Built-in Tools referenceOffendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100