github actions
Github actions is a CI/CD platform which github provides. It's free for public projects but private repos (mostly businesses pay). The docs are good and the setup is logical: Events trigger Workflows which execute steps (Jobs) in a Runner (server). Github actions provide a UI to build your workflow, but you can also create as yml file manually.
Github Actions has its own tab where you can drill into the logs of a workflow and it's jobs execution.
It has a marketplace where you can find and reuse actions. You can run your own bash scripts.
Events can be many types including manually triggered (workflow_dispatch) and scheduled (schedule). See more on events: https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
Nutshell: its a pretty complete offering.
I setup a github action to run unit tests on commits to my react app in my repo. My action also can be run manually at any time using the workflow_dispatch event.
I also added a rule to my repo to require success status before allowing branch merges
You can add a workflow status badge to show status on your readme, details: https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge
Useful posts
https://www.freecodecamp.org/news/what-are-github-actions-and-how-can-you-automate-tests-and-slack-notifications/
Comments
Post a Comment