ci: repo has no GitHub Actions workflow, so pushes and pull requests are never built or tested

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

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia leggendo package.json per trovare gli script install, build, lint e test che il workflow deve chiamare, poi guarda i file di workflow dei repo fratelli flisk-sh sotto .github/workflows per copiarne la forma. Aggiungi un workflow in .github/workflows attivato su push e pull_request, che esegue i comandi individuati su Node. Fatto significa che una pull request con una rottura deliberata mostra un check fallito, e il branch ripristinato torna verde.

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

Descrizione

agents area: runtime automation chore cli consistency dependencies developer-experience difficulty: easy documentation enhancement good first issue help wanted hygiene json-output priority: P3 starters tests

Problem

The repository has code but no GitHub Actions workflow. Pull requests and pushes run no build, test or lint, so a broken change can land on the default branch unnoticed, and contributors get no signal that their change works. Other Flisk repos run CI on every push.

Reproduce:

  1. Open the repository and look for a workflows folder under the GitHub config directory.
  2. There is none, and the Actions tab shows "Get started with GitHub Actions".
  3. Open any pull request: no checks are listed.

Expected: one workflow that installs dependencies and runs the project's build and tests (or at least a start-and-health-check) on every push and pull request.

Root Cause Analysis

The repo was set up without a workflow and nothing in the org requires one. Without a required check, nothing stops a regression from reaching the default branch, and the repo's current state is unverified.

TDD Fix Plan

  1. RED: Open a pull request that deliberately breaks the build and observe that no check fails.
    GREEN: Add a workflow that builds and tests on push and pull request, and confirm the same pull request now shows a red check.

  2. RED: Remove the broken change and confirm the check is still red until fixed.
    GREEN: Revert the break and confirm the check turns green.

REFACTOR: Reuse the org's shared workflow or the same steps as the sibling repos.

Acceptance Criteria

  • A workflow runs on every push and pull request
  • A deliberately broken change fails the check
  • The default branch passes
  • All new tests pass
  • Existing tests still pass
Lingua principale
JavaScript
Stelle
0
Fork
2
Merge medio
1h 33m
PR unite (30g)
7

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 flisk-sh/analytics

Tutte le issue di flisk-sh/analytics

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.