Working with Github Actions

GitHub Actions is the platform to automate build, test and deployment of the code. GitHub Actions has below stages:

1.??????Event :?This is triggered when code is updated or there is change in repo like updated PR ,creation of branch .

2.??????Workflows:?Workflow is automated process which will run collection of the jobs. Workflows are defined in YAML file and stored in. github/workflows directory.

3.??????Jobs: This is task that is executed in workflow. There can be multiple jobs in workflow.

4. Runners :?Process running on the server.

Building simple github Action workflow.

  1. create action.yaml file under .github/workflow/action.yaml

on
?push:
? branches:
? ?- main

jobs:
?hello_world:
? runs-on: ubuntu-latest
? steps:
? ?- run: echo "welcome to Github Action 2"         


2. Below you can see in GitHub.

No alt text provided for this image

3. This will add workflow under actions.

No alt text provided for this image


No alt text provided for this image

要查看或添加评论,请登录

Jasbinder S.的更多文章

社区洞察

其他会员也浏览了