Support `strategy` (matrix) key

Aperta
#29 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, typescript
Ambito
ci-cd, tooling

Direzione di ricerca

The issue is a design question, not a ready task: it lays out two possible mappings for GitHub Actions strategy (one file per matrix job, or expanding the matrix in one workflow) and does not pick one. Start by reading how the converter handles jobs and needs dependencies, then agree on a mapping in the thread. Done means strategy.matrix, fail-fast and max-parallel each convert to a defined Tangled equivalent, with tests for the chosen approach.

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

Descrizione

Tangled does not have an equivalent to the strategy feature, and tangleflow currently doesn't handle it. It's a very popular feature so it would make sense to handle/support in some way.

One way to support this would be to simply map each matrix job to its own file. This doesn't work if some job depends on the matrix though, and the only way to express dependencies is the order of steps within a single workflow. It's possible to write out the matrix in the same workflow, but then it runs sequentially and not in parallel (and might be really messy, or not work at all, for example multiple node versions not only need them installed but also need to switch the version when moving from one job to the other). You could do one or the other depending on if there's a needs section or not.

The other two strategy keys, fail-fast and max-parellel, would also need to be supported.

Lingua principale
TypeScript
Stelle
43
Fork
1
Merge medio
1g 19h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 43081j/tangleflow

Tutte le issue di 43081j/tangleflow

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.