GitHub Actions Step by Step DEMO for Beginners

  Рет қаралды 70,492

Automation Step by Step

Automation Step by Step

Күн бұрын

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 Жыл бұрын
You are a saviour Raghav! Cannot thank you enough for your lectures and knowledge sharing, A big big Thanks 👍
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Dhruv
@zainulkhan8381
@zainulkhan8381 Күн бұрын
Very clearly explained sir !!!
@RaghavPal
@RaghavPal 10 сағат бұрын
Glad to hear that Zainul
@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! 🌟💻📚
@RaghavPal
@RaghavPal 7 ай бұрын
Thanks Ivan
@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
@konduruvenkateswarlu5652
@konduruvenkateswarlu5652 Жыл бұрын
Your lectures are easy to learn sir.. Thank you 🙏
@RaghavPal
@RaghavPal Жыл бұрын
Always welcome
@vijaikannan3143
@vijaikannan3143 Жыл бұрын
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.
@RaghavPal
@RaghavPal Жыл бұрын
Thanks Vijai
@samsonadewunmi8242
@samsonadewunmi8242 7 ай бұрын
This is a very good introduction lesson for GitHub Actions. Good job.
@RaghavPal
@RaghavPal 7 ай бұрын
Thanks a lot Samson
@softwaretestinglearninghub
@softwaretestinglearninghub Жыл бұрын
Great explanation, thank you!
@RaghavPal
@RaghavPal Жыл бұрын
You are welcome!
@SineQuaNon1
@SineQuaNon1 Жыл бұрын
Another great video. Many thanks Raghav.
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome
@SparklingMiles
@SparklingMiles Жыл бұрын
Loved it ! Thanks Raghav :)
@RaghavPal
@RaghavPal Жыл бұрын
Thanks
@MrLeadchunker
@MrLeadchunker Жыл бұрын
Great video, it really demystified GitHub Actions for me!
@RaghavPal
@RaghavPal Жыл бұрын
Great to know this
@Street2Tech
@Street2Tech Жыл бұрын
Awesome as usual. Thanks a lot
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome
@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
@SarangHoley
@SarangHoley Жыл бұрын
Thanks a lot @Raghav for starting up this series 😊 excited for it.
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Sarang
@dimchetrifunov3444
@dimchetrifunov3444 Жыл бұрын
Very good presentation Raghav !👏
@RaghavPal
@RaghavPal Жыл бұрын
Thanks Dimche
@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
@RaghavPal
@RaghavPal Жыл бұрын
Sure Venkatesh
@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
@vishalgupta2869
@vishalgupta2869 2 ай бұрын
Nice
@RaghavPal
@RaghavPal 2 ай бұрын
Thanks
@user-de3yw2kl6l
@user-de3yw2kl6l 2 күн бұрын
thankyou, good one
@RaghavPal
@RaghavPal 11 сағат бұрын
You're welcome Dhanya
@ManishKak
@ManishKak 6 ай бұрын
thats a really nice tutorial
@RaghavPal
@RaghavPal 6 ай бұрын
Thanks a lot Manish
@phaniindra884
@phaniindra884 4 ай бұрын
Nice explanation
@RaghavPal
@RaghavPal 4 ай бұрын
Thanks and welcome
@AriKhuu
@AriKhuu 8 ай бұрын
Thank you
@RaghavPal
@RaghavPal 7 ай бұрын
You're welcome Nancy
@Inshorts_pk
@Inshorts_pk Жыл бұрын
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
@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
@aakashsonkusare69
@aakashsonkusare69 9 ай бұрын
We run Jenkins server as docker agent, then in Github action how will we do that? Bit confused
@RaghavPal
@RaghavPal 9 ай бұрын
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
@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 11 сағат бұрын
Oloja I keep all notes in the description below the video.. pls check
@12CadetSpaceCadet
@12CadetSpaceCadet 10 ай бұрын
thank you!
@RaghavPal
@RaghavPal 10 ай бұрын
You're welcome!
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 9 МЛН
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 58 МЛН
GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
32:31
TechWorld with Nana
Рет қаралды 1,4 МЛН
What are GitHub Actions | Step by Step for Beginners | Hindi
25:51
Automation Step by Step (Hindi)
Рет қаралды 7 М.
Learn Git - Full Course for Beginners
3:43:34
freeCodeCamp.org
Рет қаралды 321 М.
GitHub Actions | How to use create CI/CD pipeline using Github Actions | HINDI
27:53
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 391 М.
School Of Basics | What is CI CD | What is CI CD Pipeline | Interview questions
10:59
How To Setup Github Actions For CI/CD
20:27
ArjanCodes
Рет қаралды 30 М.
Github Actions CI/CD - Everything you need to know to get started
12:21