GitHub Actions Step by Step DEMO for Beginners

Поделиться
HTML-код
  • Опубликовано: 27 июн 2024
  • Topics:
    1. What is GitHub Actions
    2. How to use - Step by Step DEMO
    3. A demo workflow file - how to create, run and check results
    4. Terms : Workflows, Events, Jobs, Steps
    00:00 Intro
    01:26 What are GitHub Actions
    05:42 Demo
    07:06 Create a new repository
    09:18 Create workflow yaml file
    15:28 Check results
    19:48 Terms in GitHub Actions
    GitHub Actions
    Feature in GitHub to create custom Automated Workflows
    - automate SDLC workflows
    - implement CI CD DevOps
    DEMO
    Step 1 - Signup and Login to GitHub.com
    Step 2 - Create a new Repository
    Step 3 - In the repo create a folder .github/workflows
    Step 4 - In the folder create a YAML file with .yml extension
    Step 5 - Add the content of the workflow in the file
    Step 6 - Commit and push the changes
    Step 7 - Goto Repo main page and click “Actions” tab
    Step 8 - Select the workflow from left sidebar and check the logs and results
    Terms:
    WORKFLOW : collection of jobs, defined in a YAML file
    name:
    EVENTS : any activity in the repo that can trigger a workflow
    on:
    JOBS : collection of steps
    jobs:
    STEPS : actions to be taken, commands, scripts
    steps:
    Chain Jobs - :needs
    Git & GitHub Hands-On - • Git and GitHub Hands-O...
    gist.github.com/weibeld/f1360...
    QUIZ - forms.gle/UHAjM1aUDzdcq2wM8
    #GitHubActions #Demo
    Every Like & Subscription gives me great motivation to keep working for you
    You can support my mission for education by sharing this knowledge and helping as many people as you can
    If my work has helped you, consider helping any animal near you, in any way you can
    Never Stop Learning
    Raghav Pal
    ▬▬▬▬▬▬▬▬ USEFUL LINKS ▬▬▬▬▬▬▬▬▬
    FREE COURSES - AutomationStepByStep.com/
    Ask Raghav - bit.ly/2CoJGWf
    GitHub Repositories - github.com/Raghav-Pal
    Udemy Discounts - automationstepbystep.com/udem...
    Stories - automationstepbystep.com/stor...
    ▬▬ CI | CD | DEVOPS ▬
    Jenkins Beginner - bit.ly/2MIn8EC
    Jenkins Tips & Trick - bit.ly/2LRt6xC
    Docker - bit.ly/2MInnzx
    Jenkinsfile - bit.ly/3JSMSZ7
    Kubernetes - bit.ly/2MJIlMK
    ▬▬ UI TESTING ▬
    Selenium Beginners - bit.ly/2MGRS8K
    Selenium Java Framework from Scratch - bit.ly/2N9xvR6
    Selenium Python - bit.ly/2oyMp5x
    Selenium 4 - bit.ly/3AiJOlP
    Selenium Tips - bit.ly/2owxc50
    Selenium Builder - bit.ly/2MKNtlq
    Katalon Studio - bit.ly/2wARFdi
    Robot Framework with RIDE- bit.ly/2Px6Ue9
    Robot Framework with Eclipse - bit.ly/2N8DZxb
    Protractor - bit.ly/2KtqVkU
    AccelQ - bit.ly/3PlsAsh
    Test Project - bit.ly/2DRNJYE
    Cucumber BDD - bit.ly/3Cnno4z
    Cypress - bit.ly/3PpEukM
    Playwright - bit.ly/3iuPByJ
    WebdriverIO - bit.ly/3IJyofA
    XPath & Web Locators - bit.ly/3PpEvoQ
    ▬▬ API TESTING ▬
    Web Services (API) - bit.ly/2MGafL7
    SoapUI - bit.ly/2MGahmd
    Postman - bit.ly/2wz8LrW
    Postman 2022 - bit.ly/3JWm4qX
    Rest Assured - bit.ly/3zUdhRD
    Karate API Testing - bit.ly/3w3H5Ku
    General - bit.ly/2PYdwmV
    JMeter API Testing - bit.ly/3AgVPar
    Katalon Studio API Testing - bit.ly/2BwuCTN
    API Mocking - bit.ly/3bYPsjS
    ▬▬ MOBILE TESTING ▬
    Appium - bit.ly/2ZHFSGX
    Mobile Playlist - bit.ly/2PxpeUv
    ▬▬ PERFORMANCE TESTING ▬
    JMeter Beginner - bit.ly/2oBbtIU
    JMeter Intermediate - bit.ly/2oziNVB
    JMeter Advanced - bit.ly/2Q22Y6a
    JMeter Tips & Tricks - bit.ly/2NOfWD2
    Gatling - bit.ly/3QrWfkV
    Performance Testing - bit.ly/2wEXbLS
    ▬▬ SOURCE CODE MANAGEMENT ▬
    Git & GitHub - bit.ly/2Q1pagY
    GITLAB - bit.ly/2kQPGyQ
    ▬▬ IDE ▬
    Eclipse - bit.ly/3AnRhQP
    IntelliJ IDEA - bit.ly/3AnyDZ8
    Visual Studio Code - bit.ly/2V15yvt
    ▬▬ PROGRAMMING ▬
    Java Beginners - bit.ly/2PVUcXs
    Java Tips & Tricks - bit.ly/2CdcDnJ
    Groovy - bit.ly/2FvWV5C
    JavaScript - bit.ly/2KJDZ8o
    TypeScript - bit.ly/3dvJBmz
    Python - bit.ly/2Z4iRye
    Ruby - bit.ly/3JRRmzf
    ▬▬ BUILD TOOLS ▬
    Maven - bit.ly/2NJdDRS
    Gradle - bit.ly/30l3h1B
    ▬▬ CLOUD SERVICES ▬
    Browserstack - bit.ly/3w7kxZn
    Saucelabs - bit.ly/3w7kAo1
    LambdaTest - bit.ly/3C6TBwM
    ▬▬ DATA FORMATS ▬
    JSON - bit.ly/3w450tq
    XML - bit.ly/3PqRneH
    ▬▬ OTHERS ▬
    Virtualization on Windows - bit.ly/2SItIL9
    Mock Interviews - bit.ly/3QGwwVJ
    Redis - bit.ly/2N9jyCG
    Misc - bit.ly/2Q2q5xQ
    Tools & Tips - bit.ly/2oBfwoR
    QnA Friday - bit.ly/2NgwGpw
    Sunday Special - bit.ly/2wB23BO
    -

Комментарии • 70

  • @dhruvchopra5719
    @dhruvchopra5719 Год назад +10

    You are a saviour Raghav! Cannot thank you enough for your lectures and knowledge sharing, A big big Thanks 👍

  • @jaminDNB
    @jaminDNB 7 месяцев назад

    Absolutely blown away by your educational content, Raghav! 🚀 Clear explanations, well-chosen examples - making learning a breeze. Your work is expanding my knowledge. Keep the outstanding content coming! 🌟💻📚

  • @zeerakkhan274
    @zeerakkhan274 8 месяцев назад

    Great, concise and informative video for the absolute beginners like me. Thankyou for the video!

    • @RaghavPal
      @RaghavPal  8 месяцев назад

      You're very welcome Zeerak

  • @davidsneek9659
    @davidsneek9659 11 месяцев назад

    Crystal clear explanation. Thank you. 👍

    • @RaghavPal
      @RaghavPal  11 месяцев назад

      Glad it was helpful David

  • @samsonadewunmi8242
    @samsonadewunmi8242 7 месяцев назад

    This is a very good introduction lesson for GitHub Actions. Good job.

    • @RaghavPal
      @RaghavPal  7 месяцев назад

      Thanks a lot Samson

  • @zainulkhan8381
    @zainulkhan8381 День назад

    Very clearly explained sir !!!

    • @RaghavPal
      @RaghavPal  12 часов назад

      Glad to hear that Zainul

  • @vijaikannan3143
    @vijaikannan3143 Год назад +4

    Your video for Beginners is very useful. Helped me a lot. Step by Step explanation about YAML is marvelous. Is it possible to create more videos on this Github Actions. Interested to learn more on this.

  • @konduruvenkateswarlu5652
    @konduruvenkateswarlu5652 Год назад +1

    Your lectures are easy to learn sir.. Thank you 🙏

  • @SineQuaNon1
    @SineQuaNon1 Год назад

    Another great video. Many thanks Raghav.

  • @MrLeadchunker
    @MrLeadchunker Год назад

    Great video, it really demystified GitHub Actions for me!

  • @SparklingMiles
    @SparklingMiles Год назад

    Loved it ! Thanks Raghav :)

  • @softwaretestinglearninghub
    @softwaretestinglearninghub Год назад

    Great explanation, thank you!

  • @dimchetrifunov3444
    @dimchetrifunov3444 Год назад

    Very good presentation Raghav !👏

  • @SarangHoley
    @SarangHoley Год назад

    Thanks a lot @Raghav for starting up this series 😊 excited for it.

  • @Street2Tech
    @Street2Tech Год назад

    Awesome as usual. Thanks a lot

  • @aditikhandelwal8105
    @aditikhandelwal8105 Год назад

    Thank you. Your videos always helps to understand in easy and better way. Can you please create more content on this topic...Github actions for devops.

    • @RaghavPal
      @RaghavPal  Год назад

      Yes I will plan for it Aditi, the basics are covered here, Let me know what more topics do you need to see

  • @venkateshd1208
    @venkateshd1208 Год назад

    Thanks for wonderful video. Your video is helped me on github actions stage 1. Thanks a lot! Please make more videos on this topica step by step

  • @monotoshmondal9185
    @monotoshmondal9185 9 месяцев назад

    Thanks..that was so simple and lucid Sir

    • @RaghavPal
      @RaghavPal  9 месяцев назад

      You are welcome Monotosh

  • @amarnatha1614
    @amarnatha1614 Месяц назад

    Thank you somuch sir

    • @RaghavPal
      @RaghavPal  Месяц назад

      Most welcome Amarnatha

  • @ManishKak
    @ManishKak 6 месяцев назад

    thats a really nice tutorial

    • @RaghavPal
      @RaghavPal  6 месяцев назад

      Thanks a lot Manish

  • @user-de3yw2kl6l
    @user-de3yw2kl6l 2 дня назад

    thankyou, good one

    • @RaghavPal
      @RaghavPal  13 часов назад

      You're welcome Dhanya

  • @nilamm2598
    @nilamm2598 8 месяцев назад

    Thank you. What about advance workflows. Do you have more of this? Also how to see/check event is triggered once code is pushed.

    • @RaghavPal
      @RaghavPal  7 месяцев назад

      will add more on this Nilam

  • @AriKhuu
    @AriKhuu 8 месяцев назад

    Thank you

    • @RaghavPal
      @RaghavPal  7 месяцев назад

      You're welcome Nancy

  • @vishalgupta2869
    @vishalgupta2869 2 месяца назад

    Nice

  • @phaniindra884
    @phaniindra884 4 месяца назад

    Nice explanation

    • @RaghavPal
      @RaghavPal  4 месяца назад

      Thanks and welcome

  • @aakashsonkusare69
    @aakashsonkusare69 9 месяцев назад +2

    We run Jenkins server as docker agent, then in Github action how will we do that? Bit confused

    • @RaghavPal
      @RaghavPal  9 месяцев назад +3

      Akash
      To run a Jenkins server as a Docker agent in GitHub Actions, you can use the following steps:
      1. Create a Dockerfile that defines the Jenkins image. The Dockerfile should include the following steps:
      * Install the Jenkins server.
      * Install the plugins that you need.
      * Configure the Jenkins server.
      2. Build the Docker image.
      3. Create a GitHub Actions workflow file. The workflow file should include the following steps:
      * Create a Docker agent.
      * Run the Jenkins job.
      Here is an example of a Dockerfile that defines a Jenkins image:
      ```
      FROM jenkins/jenkins:latest
      RUN apt-get update && apt-get install -y git
      RUN jenkins-plugin-cli install greenballs
      ```
      Here is an example of a GitHub Actions workflow file that runs a Jenkins job:
      ```
      name: Run Jenkins job
      on:
      push:
      branches:
      - main
      jobs:
      build:
      runs-on: ubuntu-latest
      steps:
      - uses: docker/setup-agent@v2
      - name: Run Jenkins job
      run: |
      docker run -it --rm \
      -v jenkins_home:/var/jenkins_home \
      jenkins/jenkins:latest \
      /bin/bash -c "jenkins -s"
      ```
      This workflow file will create a Docker agent, run the Jenkins job, and then delete the Docker agent.
      I hope this helps

  • @Inshorts_pk
    @Inshorts_pk Год назад +1

    Hi @Raghav, fantastic explanation. Is there any continuation tutorial available for this GitHub Actions?

    • @RaghavPal
      @RaghavPal  Год назад

      Hi Prem, not for now, I created this for beginners to get started with GitHub Actions

    • @Inshorts_pk
      @Inshorts_pk Год назад

      @@RaghavPal But it was wonderful. It would be helpful if you continue so..

    • @RaghavPal
      @RaghavPal  Год назад

      Yes, I will do more sessions on this. You can suggest the topics Prem

  • @faisalakml
    @faisalakml 3 месяца назад

    im add 2 test syntax on my package json like:
    test-register : "npx cypress run register"
    test-login : "npx cypress run login"
    how to run both of that on git action yaml? im using && but failed on jobs

    • @RaghavPal
      @RaghavPal  3 месяца назад

      Akmal
      To run multiple commands sequentially in a GitHub Actions workflow YAML, you can use the `run` attribute with a pipe (`|`) to chain the commands together. Let's create a workflow that executes both your `test-register` and `test-login` commands:
      ```yaml
      name: Cypress Tests
      on:
      push:
      branches:
      - main # Adjust this to your branch name
      jobs:
      cypress_tests:
      runs-on: ubuntu-latest
      steps:
      - name: Checkout code
      uses: actions/checkout@v2
      - name: Install dependencies
      run: npm install # Replace with your package manager command
      - name: Run Cypress tests
      run: |
      npx cypress run register
      npx cypress run login
      ```
      Here's what each section does:
      1. Checkout code: Fetches your repository code.
      2. Install dependencies: Installs the necessary dependencies (you can replace this with your actual package manager command).
      3. Run Cypress tests: Executes both `npx cypress run register` and `npx cypress run login` sequentially.
      Make sure to adjust the branch name in the `on` section to match your desired trigger. If you encounter any issues, double-check your package.json scripts and ensure that the Cypress commands are correctly configured.

  • @aakashsonkusare69
    @aakashsonkusare69 9 месяцев назад

    Sir can you please come up with Github Actions real interview questions?

    • @RaghavPal
      @RaghavPal  9 месяцев назад

      I will do Akash

  • @rekhakalasare4910
    @rekhakalasare4910 Год назад

    How to make project available online after deploying through github actions

    • @RaghavPal
      @RaghavPal  Год назад

      Hi Rekha,
      To make your project available online after deploying through Github Actions, you need to host your application on a web server or a cloud platform that supports your application's stack. Here are the general steps to do this:
      Choose a hosting provider: There are many hosting providers available that support various application stacks. Some popular options are Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure, Heroku, and Netlify. Choose a provider that supports your application's stack and fits your requirements.
      Create an account and set up your project: Follow the provider's instructions to create an account and set up your project. This usually involves creating a new instance or server, configuring security settings, and connecting to your Github repository.
      Deploy your application: Depending on the provider, there are different ways to deploy your application. Some providers support automatic deployment from Github, where your application is automatically deployed to the server after every commit. Others require manual deployment through a command-line interface or a web interface. Follow the provider's instructions to deploy your application.
      Configure your DNS settings: Once your application is deployed, you need to configure your DNS settings to point to your server. This involves creating a DNS record that maps your domain name to your server's IP address. The specific steps depend on your domain registrar and hosting provider.
      Test your application: After configuring your DNS settings, test your application to make sure it's available online. You can do this by visiting your domain name in a web browser.
      Overall, the process of making your project available online after deploying through Github Actions involves deploying your application to a web server or a cloud platform and configuring your DNS settings to point to your server. The specific steps depend on the hosting provider you choose and your application's stack

  • @sourabhdeshpande2112
    @sourabhdeshpande2112 8 месяцев назад

    i creeated the action created my workflow then commited action are not started

    • @RaghavPal
      @RaghavPal  8 месяцев назад

      Sourabh
      There are a few possible reasons why your GitHub Actions workflow may not be starting:
      * The workflow may be misconfigured. For example, the workflow may be missing a required trigger or event.
      * The workflow may be referring to a repository that does not exist.
      * The workflow may be referring to a branch or tag that does not exist.
      * The workflow may be referring to a file that does not exist.
      * The workflow may be trying to access a resource that is not available.
      To troubleshoot the issue, you can try the following:
      * Check the workflow configuration for errors.
      * Make sure that the workflow is referring to the correct repository, branch, tag, and file.
      * Make sure that the workflow is not trying to access any resources that are not available.
      * If you are still having problems, you can try asking for help on the GitHub Actions forum or Slack channel.
      In the meantime, you can try manually triggering the workflow by clicking the "Run workflow" button on the GitHub Actions tab.
      I hope this helps

  • @rebekahoj
    @rebekahoj 2 дня назад

    i tried to find the link of the notes, could not

    • @RaghavPal
      @RaghavPal  13 часов назад

      Oloja
      I keep all notes in the description below the video.. pls check

  • @12CadetSpaceCadet
    @12CadetSpaceCadet 10 месяцев назад

    thank you!

    • @RaghavPal
      @RaghavPal  10 месяцев назад

      You're welcome!