[TECH] 🔧 Ajoute une tache npm
pour executer uniquement les fichiers de test en cours de modification
#11134
+1
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🥞 Problème
Ce n'est pas toujours simple d'exécuté uniquement les tests qui ont été modifiés, surtout si on en modifie plusieurs par commit...
🥓 Proposition
Suite à la discussion slack https://1024pix.slack.com/archives/C038PTJ9UJE/p1736948910624919 où
git ls-files
avecxargs
etnpm run test:api:path --
git ls-files
pour qu'elle ne remonte QUE les fichiers de tests;j'ai simplement pris la commande et ajouter une action pour permettre de lancer
npm run test:api:git-modified
:)🧃 Remarques
RAS
😋 Pour tester
npm run test:api:git-modified