Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Skip the Windows job when a branch changes only the manual

Aperta Adatta ai principianti
#128 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
85/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, yaml
Ambito
ci-cd

Direzione di ricerca

Leggi .github/workflows/ci.yml e il job changes che emette code. Aggiungi un output windows false per le modifiche docs/manual/ e gate il job windows su di esso, lasciando linux e manual su code. Conferma con un branch che modifica solo docs/manual/labyrinth.md che Windows viene saltato ma i check richiesti passano.

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

Descrizione

area: tests-ci type: feature

Read first

Read these before starting. If this issue and the spec disagree, the spec wins; say so in the pull request.

Summary

A branch that only edits the operator manual (docs/manual/) runs the full Windows job, about 18 minutes, although no Windows test reads the manual. Only the Linux job (tests/manual/manual.bats) and the Manuals job check it. Skipping the Windows job for manual-only branches saves that time on every documentation pass.

Depends on

Nothing.

Location & Context

  • .github/workflows/ci.yml, the changes job: one output, code, gates all three test jobs. docs/manual/* sets code=true.
  • tests/manual/manual.bats reads docs/manual/labyrinth.md. tests/runner/Help.Tests.ps1 only checks that the help names the manual's path, not its content.

Current Behavior

A change to docs/manual/ alone runs the Linux, Manuals and Windows jobs. The Windows job adds about 18 minutes and tests nothing that changed.

Plan

  1. Give the changes job a second output, windows, that is true when the branch changes anything other than the paths the job skips today and docs/manual/.
  2. Gate the windows job on windows, and keep linux and manual on code.
  3. Keep every push to main running all jobs.

Acceptance tests

  • A branch changing only docs/manual/labyrinth.md runs the Linux and Manuals jobs and skips Windows; the required checks still pass.
  • A branch changing a .ps1 file, or any file outside the skipped paths, runs all three.
  • A push to main runs all three.

Done when

  • The three cases above are shown on test branches, and the PR lists their run links.

Out of scope

  • Splitting the Linux job's own steps.
  • The Docs workflow (docs.yml).
Lingua principale
PowerShell
Stelle
0
Fork
0
Merge medio
54m
PR unite (30g)
43

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 dotnetdork/Labyrinth

Tutte le issue di dotnetdork/Labyrinth

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.