{"id":7780,"date":"2025-09-01T11:57:01","date_gmt":"2025-09-01T11:57:01","guid":{"rendered":"https:\/\/techhub.saworks.io\/docs\/tutoriel-github-intermediaire\/automatiser-les-tests-de-charge-azure-en-utilisant-github\/exercice-creer-un-flux-de-travail-qui-valide-le-code-lors-dune-pull-request\/"},"modified":"2025-09-24T12:02:34","modified_gmt":"2025-09-24T12:02:34","slug":"exercice-creer-un-flux-de-travail-qui-valide-le-code-lors-dune-pull-request","status":"publish","type":"docs","link":"https:\/\/techhub.saworks.io\/fr\/docs\/tutoriel-github-intermediaire\/automatiser-les-tests-de-charge-azure-en-utilisant-github\/exercice-creer-un-flux-de-travail-qui-valide-le-code-lors-dune-pull-request\/","title":{"rendered":"Exercice \u2013 Cr\u00e9er un flux de travail qui valide le code lors d\u2019une pull request"},"content":{"rendered":"\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<p>Dans cet exercice, vous allez cr\u00e9er un <strong>workflow GitHub<\/strong> qui ex\u00e9cute une action lorsque vous fusionnez une <strong>pull request<\/strong>.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Pr\u00e9requis<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Un compte GitHub<\/li>\n\n\n\n<li>La capacit\u00e9 \u00e0 naviguer et modifier des fichiers sur GitHub<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Commencer<\/strong><\/h3>\n\n\n\n<p>Lorsque vous cliquez sur le bouton <strong>D\u00e9marrer l\u2019exercice sur GitHub<\/strong>, vous \u00eates redirig\u00e9 vers un <strong>d\u00e9p\u00f4t mod\u00e8le public<\/strong> sur GitHub qui vous guide \u00e0 travers une s\u00e9rie d\u2019\u00e9tapes. Voici quelques conseils pour r\u00e9ussir l\u2019exercice :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cr\u00e9ez un <strong>d\u00e9p\u00f4t public<\/strong>, car les d\u00e9p\u00f4ts priv\u00e9s utilisent des <strong>minutes GitHub Actions<\/strong>.<\/li>\n\n\n\n<li>Apr\u00e8s avoir cr\u00e9\u00e9 votre propre d\u00e9p\u00f4t \u00e0 partir du mod\u00e8le, <strong>attendez environ 20 secondes<\/strong> puis <strong>actualisez la page<\/strong>.<\/li>\n\n\n\n<li>Suivez les instructions dans le fichier <strong>README<\/strong> du d\u00e9p\u00f4t pour comprendre le fonctionnement de l\u2019exercice, ses objectifs p\u00e9dagogiques et comment le compl\u00e9ter avec succ\u00e8s.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Une fois l\u2019exercice termin\u00e9 sur GitHub, revenez ici pour :<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Un <strong>quiz rapide<\/strong> pour tester vos connaissances<\/li>\n\n\n\n<li>Un <strong>r\u00e9sum\u00e9<\/strong> de ce que vous avez appris<\/li>\n\n\n\n<li>Obtenir un <strong>badge<\/strong> pour avoir termin\u00e9 ce module<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-vivid-green-cyan-background-color has-background wp-element-button\" href=\"https:\/\/github.com\/skills-dev\/hello-github-actions\">Commencer l&rsquo;exercice sur github<\/a><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Dans cet exercice, vous allez cr\u00e9er un workflow GitHub qui ex\u00e9cute une action lorsque vous fusionnez une pull request. Pr\u00e9requis Commencer Lorsque vous [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":7721,"menu_order":48,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"doc_badge":[],"class_list":["post-7780","docs","type-docs","status-publish","hentry"],"author_avatar":"https:\/\/secure.gravatar.com\/avatar\/6a70e7c73db9f245e650948d09d74f61?s=96&d=mm&r=g","author_name":"Annick N'dri","_links":{"self":[{"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/docs\/7780"}],"collection":[{"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/comments?post=7780"}],"version-history":[{"count":0,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/docs\/7780\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/docs\/7721"}],"wp:attachment":[{"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/media?parent=7780"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/doc_tag?post=7780"},{"taxonomy":"doc_badge","embeddable":true,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/doc_badge?post=7780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}