Posts

Showing posts from March, 2022

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 r