How to setup a CI/CD pipeline using Github Actions by running automated jest unit tests

Sdílet
Vložit
  • čas přidán 25. 09. 2022
  • Github actions are a great way to improve the quality of your team and project's code by automatically running various tests and checks against your teams pull requests before merging them into trunk. Here is a quick overview of how to get that setup.
    🤑 Patreon / webdevjunkie
    🔔 Newsletter eepurl.com/hnderP
    💬 Discord / discord
    📁. GitHub github.com/codyseibert/youtube
    My VSCode Extensions:
    - theme: material community high contrast
    - fonts: Menlo, Monaco, 'Courier New', monospace
    - errors: Error Lens
    - extra git help: Git Lens
    - tailwind css intellisense
    - indent rainbow
    - material icon theme
    - prettier & eslint
    - ES7+ React Snippets

Komentáře • 34

  • @arno.claude
    @arno.claude Před rokem +6

    Never knew it was that easy! Thank you ver much, more videos of that nature please!

  • @travelvideos7999
    @travelvideos7999 Před rokem +1

    Thanks. Simple, straight-forward, and complete.

  • @jeff-creations
    @jeff-creations Před 2 dny

    Great video Cody, thanks! I learned a bunch

  • @arif3012
    @arif3012 Před 8 měsíci

    Thanks for sharing such a simple example. 👍

  • @bulelanibotman
    @bulelanibotman Před rokem

    jesus, cody! why are you such a great teacher?

  • @MrPaulPhan
    @MrPaulPhan Před rokem +3

    Keep doing what you’re doing

  • @lamargtv2572
    @lamargtv2572 Před rokem +1

    Great video. Keep it upp!

  • @yousafwazir3167
    @yousafwazir3167 Před rokem +9

    Thanks can you do more production based ideas / practices

  • @SeibertSwirl
    @SeibertSwirl Před rokem +6

    Good job babe!!!!

  • @27sosite73
    @27sosite73 Před 7 měsíci

    thank you!

  • @ZEMMOURI_Med
    @ZEMMOURI_Med Před rokem +1

    Thanks, what color theme in VS Code do you use, please?

  • @09487abc
    @09487abc Před 4 měsíci

    謝謝你的教學

  • @jlo3349
    @jlo3349 Před 8 měsíci

    Thanks! Very clear! A side question - I noticed your vs code theme is customised (has nice colours and icons next to the files) - any links you can refer for setting up my vs code please?

    • @WebDevCody
      @WebDevCody  Před 8 měsíci

      This theme is material community I think

  • @aislanarislou
    @aislanarislou Před rokem +2

    What your script "yarn ci" does ??

  • @sogzful
    @sogzful Před rokem

    can splitting the tests into too many folders affect the speed? mine take forever

  • @aislanarislou
    @aislanarislou Před rokem +2

    One more question: how to define environment vars that are used by some of the code, and sometimes the tests itself ?

    • @WebDevCody
      @WebDevCody  Před rokem

      You can add them to your GitHub repo and pull them in with your actions

  • @vishuhanda1837
    @vishuhanda1837 Před rokem

    do you execute unit tests on github actions on a browser or they are getting executed in head less mode

  • @_emnljrz
    @_emnljrz Před rokem +4

    Thanks! But perhaps you can use dark mode (dark reader) plugins in your chrome? Nevertheless great work

  • @romimaximus
    @romimaximus Před rokem

    Thankx for sharing this great content !! ...but could you make a short video tutorial, explaining what's the difference between "Github Actions Automatically Deploy" and a "Pipeline" ? cause im a beginner in CI/CD... and this so confusing to me ... 😂😂

    • @WebDevCody
      @WebDevCody  Před rokem +1

      a pipeline is just a series of steps you run to get your code build, tested, and deployed. What I showed in this video was how to build a single step in a potentially larger pipeline (no talked about in this video). So if I were to add a deploy step which only runs after the tests pass, it would be more of a pipeline.

    • @romimaximus
      @romimaximus Před rokem

      @@WebDevCody Ok, go it !! thank you very much !! ..i really appreciate .. 😁👍

  • @okamimoushiyou
    @okamimoushiyou Před rokem +2

    File > Preferences > Settings > Features (on the left side bar) > Explorer (within the "Features" section) > Untick “compact folders”
    That is all 😂

  • @ucol2068
    @ucol2068 Před 4 měsíci

    Hi, tried doing same .github\workflow you did but i get an error.

  • @philcajurao
    @philcajurao Před rokem

    Can you check my Classroom React?

    • @WebDevCody
      @WebDevCody  Před rokem

      Your what?

    • @philcajurao
      @philcajurao Před rokem

      I am making a Classroom App for my thesis and it is made from React

    • @Rust_Rust_Rust
      @Rust_Rust_Rust Před rokem

      @@philcajurao for a thesis? Is this an undergraduate degree?

  • @yousafwazir3167
    @yousafwazir3167 Před rokem

    Thanks can you do more production based ideas / practices

  • @yousafwazir3167
    @yousafwazir3167 Před rokem

    Thanks can you do more production based ideas / practices