What are GitHub Actions | Step by Step for Beginners | Hindi
Vložit
- čas přidán 15. 07. 2024
- FREE COURSES - automationstepbystep.com/
Topics:
1. What are 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:37 What are GitHub Actions
07:39 Demo
09:00 Create a new repository
12:40 Create a workflow YAML file
18:05 Check results
21:04 Terms in GitHub Actions
GitHub Actions
- feature in GitHub to create custom automated Workflows
- automate SDLC workflows
- implement CI CD DevOps
- run a task on a specific event
DEMO
Step 1 - Sign up or 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 extension .yml
Step 5 - Add the workflow content to the file
Step 6 - Commit and push the changes
Step 7 - Goto main page of the repo and goto “Actions”
Step 8 - Select the workflow from the left side 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 #Hindi
CI CD DEVOPS
JENKINS BEGINNER ► bit.ly/2MIn8EC
JENKINS TIPS & TRICKS ►bit.ly/2LRt6xC
JENKINSFILE ► bit.ly/3JSMSZ7
DOCKER ► bit.ly/2MInnzx
KUBERNETES ► bit.ly/2MJIlMK
SOURCE CODE MANAGEMENT
GIT & GITHUB ►bit.ly/2Q1pagY
GITLAB ► bit.ly/2kQPGyQ
CLOUD SERVICES
BROWSERSTACK ► bit.ly/3w7kxZn
SAUCELABS ► bit.ly/3w7kAo1
LAMBDATEST ► bit.ly/3C6TBwM
DATA FORMATS
JSON ► bit.ly/3w450tq
XML ► bit.ly/3PqRneH
VIRTUALIZATION
VIRTUALIZATION ON WINDOWS ► bit.ly/2SItIL9
MOCK INTERVIEWS ► bit.ly/3QGwwVJ ▬▬
OTHERS
REDIS ►bit.ly/2N9jyCG
MISC ► bit.ly/2Q2q5xQ
TOOLS & TIPS ► bit.ly/2oBfwoR
QnA FRIDAY ► bit.ly/2NgwGpw
SUNDAY SPECIAL ► bit.ly/2wB23BO
UDEMY ► www.udemy.com/user/raghav-pal-3/
GITHUB PROJECTS ► github.com/Raghav-Pal/
CORPORATE TRAINING ► automationstepbystep.com/corp...
STORIES BY RAGHAV ► automationstepbystep.com/stor...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
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
ASK RAGHAV ► bit.ly/2CoJGWf
...
great tutorial ever
There couldn't have been any better or any simpler way to describe Github actions. Thank you for your clear demo and explanation !
Thanks Jaskiran
Thankyou sir for clear demo and explanation.
Thanks for the amazing video
nice and simply explained video thank you sir.
Most welcome
one of the best video on this topic
Thanks a lot
Nice sir really like it 👍
Thanks Deepak
its really simple and clean explanation
Thank you so much
Thanks a lot
great sir great very nice word to word explanation
Thanks Nandi
Thanks Raghav for starting this wonderful series. I hope you will be covering GitHub actions thoroughly.
I will plan to add more Hari
Very nice explanation..
Thanks and welcome
Great explanation way , salute sir
Thanks
Hope to see next video soon
sure
Awesome session sir.. please upload more videos in Hindi..like Selenium Automation with Python, Robot Framework, Appium etc
I will try my best
I want to ask one question how can I run the API after deployment like as I deployed through GitHub action and now want to use live.
Thanks sir, can you please make github actions tutorials
I will check and plan
nice explanation. can you please explain how can we deploy the azure vm template using github action.
Sure
Can someone help me please i have github action and there is SIT and UAT already present so my task is - create a branch for PRE PROD in github action how to do and what need to be configure there please help me guys
Here are the steps involved:
1. Create the PRE PROD Branch:
- Navigate to your repository on GitHub.
- Click the "Branch" button or dropdown menu.
- Type "PRE_PROD" (or your preferred name) and click "Create branch."
2. Modify Workflow YAML File:
- Access the YAML file defining your GitHub Actions workflow.
- Add a new job for PRE PROD, similar to SIT and UAT, with appropriate configuration:
```yaml
jobs:
pre_prod:
runs-on: ubuntu-latest # Specify desired runner
steps:
- uses: actions/checkout@v3
- name: Set up environment
# ... necessary environment setup steps
- name: Run PRE PROD tests
# ... commands to run PRE PROD tests or deployments
```
3. Configure Triggers and Conditions:
- Triggers: Determine when to initiate the PRE PROD job:
- Pushes to specific branches (e.g., `main`)
- Pull requests
- Manually
- Conditions: Control when the job executes:
- `if: ${{ github.ref == 'refs/heads/main' }}` (example for main branch)
4. Incorporate Deployment Steps:
- If deploying to a PRE PROD environment, include necessary deployment steps within the `pre_prod` job.
5. Commit and Push Changes:
- Commit the updated YAML file to your repository.
- Push the changes to trigger the new PRE PROD workflow.
Additional Considerations:
- Branch Protection Rules: Enforce quality and review processes by setting branch protection rules for PRE PROD.
- Secrets and Environment Variables: Securely manage sensitive information using GitHub Actions secrets.
- Dependent Jobs: If PRE PROD relies on SIT or UAT results, use `needs` to define job dependencies.
Great ...Thnx Raghav....Upload another mobile Automation Appium Tool. Hands on exp.
Okay
Can someone help me please i have github action and there is SIT and UAT already present so my task is - create a branch for PRE PROD in github action how to do and what need to be configure there please help me guys
Here are the steps involved:
1. Create the PRE PROD Branch:
- Navigate to your repository on GitHub.
- Click the "Branch" button or dropdown menu.
- Type "PRE_PROD" (or your preferred name) and click "Create branch."
2. Modify Workflow YAML File:
- Access the YAML file defining your GitHub Actions workflow.
- Add a new job for PRE PROD, similar to SIT and UAT, with appropriate configuration:
```yaml
jobs:
pre_prod:
runs-on: ubuntu-latest # Specify desired runner
steps:
- uses: actions/checkout@v3
- name: Set up environment
# ... necessary environment setup steps
- name: Run PRE PROD tests
# ... commands to run PRE PROD tests or deployments
```
3. Configure Triggers and Conditions:
- Triggers: Determine when to initiate the PRE PROD job:
- Pushes to specific branches (e.g., `main`)
- Pull requests
- Manually
- Conditions: Control when the job executes:
- `if: ${{ github.ref == 'refs/heads/main' }}` (example for main branch)
4. Incorporate Deployment Steps:
- If deploying to a PRE PROD environment, include necessary deployment steps within the `pre_prod` job.
5. Commit and Push Changes:
- Commit the updated YAML file to your repository.
- Push the changes to trigger the new PRE PROD workflow.
Additional Considerations:
- Branch Protection Rules: Enforce quality and review processes by setting branch protection rules for PRE PROD.
- Secrets and Environment Variables: Securely manage sensitive information using GitHub Actions secrets.
- Dependent Jobs: If PRE PROD relies on SIT or UAT results, use `needs` to define job dependencies.